我已经为安卓平台开发了一个phonegap项目,它是completed.Now,我想为windows平台创建一个相同的项目。因此,我遵循下面的链接,以供参考,index.md.html,但我坚持问题。
我的规范,Windows-7操作系统,cordova-3.5,Visual studio 2010,Windows phone SDK 7.1
我坚持以下几点,
Download the latest copy of [PhoneGap and extract its contents. We will be working with the subfolder: lib\windows-phone-8\
copy the file CordovaWP8AppFull-x.x.x.zip to the folder : \My Documents\Visual Studio 2012\Templates\ProjectTemplates\2.1。构建模板
注意:这个步骤可能不是必需的。如果lib\windows-phone目录已经包含一个文件CordovaStarter-x.zip,那么您可以跳过这个步骤),为了简化开发过程,Cordova附带了一个Visual模板,它允许快速创建Cordova应用程序。如果需要,可以修改此模板,如果要修改和重新生成模板,下面的步骤指示如何继续操作。
Open the file lib\windows-phone\templates\standalone\CordovaSolution.sln in Visual Studio Express for Windows Phone
From the file menu, select 'Export Template...'
Choose template type 'Project template'
Give the exported template a name, ex. CordovaStarter-2.1.0 will produce CordovaStarter-2.1.0.zip
Optionally, you may add a description, icon image, and Preview image. These are what is displayed in Visual Studio in the 'New Project' dialog.-
Note: If you select ( 'Automatically import the template ... ') then you will not need to copy the .zip file over as outlined in step 2.
Press 'Finish'我已经从命令行安装了科多瓦号。
( 1)在哪里可以找到phonegap中的lib\windows-phone-8\CordovaWP8AppFull-x.x.x.zip文件夹?我找不到文件夹。
2)我也找不到lib\windows-phone\templates\standalone\CordovaSolution.sln.请帮助如何建立我的第一个项目。
发布于 2014-08-04 08:12:51
在visual中,您能否创建以下项目CordovaWP8AppStandalone或完整解决方案?
如果不是,您需要在这里添加Visual模板:C:\Users\YOURNAME\Users\Visual 2013\ template \ProjectTemplate
或者访问github,只需下载https://github.com/phonegap/phonegap/archive/master.zip
关闭主题:您是否尝试创建一个标准的Windows Html5应用程序并在此PhoneGap项目中添加您的PhoneGap代码?
编辑:您可以在这里下载cordova (for windows) 3.5.0的最新版本:http://archive.apache.org/dist/cordova/platforms/cordova-windows-3.5.0.zip
编辑之二:这是所有科多瓦版本的档案:http://archive.apache.org/dist/cordova/
编辑3:用Cordova:campaign=buffer更新Visual studio
发布于 2014-08-04 08:15:26
Windows phone的Phonegap文档非常可怕。最后,我从下面的链接中得到了解决方案,
https://stackoverflow.com/questions/25112952
复制相似问题