Visual studio 2010 如何创建和构建windows phone phonegap项目?

Visual studio 2010 如何创建和构建windows phone phonegap项目?,visual-studio-2010,windows-phone-7,cordova,windows-phone-8,Visual Studio 2010,Windows Phone 7,Cordova,Windows Phone 8,我已经为android平台开发了一个phonegap项目,并且已经完成。现在我想为windows平台创建一个相同项目的构建。因此,我遵循以下链接作为参考,但我仍然遇到了一些问题 我的说明书, 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 work

我已经为android平台开发了一个phonegap项目,并且已经完成。现在我想为windows平台创建一个相同项目的构建。因此,我遵循以下链接作为参考,但我仍然遇到了一些问题

我的说明书, 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.x.x.zip,则可以跳过此步骤)为了简化开发过程,Cordova附带了一个Visual Studio模板,允许快速创建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'
我已经从命令行安装了cordova

1) 我在哪里可以找到phonegap中的lib\windows-phone-8\CordovaWP8AppFull-x.x.x.zip文件夹?我找不到文件夹


2) 我也找不到lib\windows phone\templates\standalone\CordovaSolution.sln。请帮助我如何构建我的第一个项目。

在visual studio中,您可以创建以下项目吗

如果没有,则需要在此处添加Visual Studio模板:C:\Users\YOURNAME\Documents\Visual Studio 2013\Templates\ProjectTemplates

或者转到github,只需下载

离题: 您是否尝试创建一个标准的Windows Phone Html5应用程序,并在此Html项目中添加您的PhoneGap代码

编辑: 您可以在此处下载cordova(windows版)3.5.0的最新版本:

编辑之二: 以下是所有Cordova版本的档案:

编辑3:
使用Cordova进行Visual studio更新:

针对Windows phone的Phonegap文档非常糟糕。最后我从下面的链接中得到了解决方案


好的,太好了!我不知道用windows phone安装phonegap肯定会很麻烦!我有一个小面团@Damien,如果我使用Cordova Windows 7模板创建一个项目,该应用程序会在Windows 8 phone中运行吗?windows是否有任何设备目标,以便我们可以指定目标设备。@如果您创建windows Phone 7应用程序,它将在windows Phone 7、7.5、8、8.1(所以WP7和更高版本的设备)上运行,如果您创建windows Phone 8应用程序,它将仅在windows Phone 8和更高版本的设备上运行。截至6月23日,WP8>=拥有82%的市场份额,而WP7.X拥有17%的市场份额,因此根据您的应用程序,您可能希望将WP7设备作为目标设备,或者不作为目标设备。资料来源:谢谢你提供的信息。还有一个问题,我已经从下面的链接下载了cordova模板,并将其添加到VisualStudio项目模板下,它工作正常。但问题是它是cordova 2.9,但最新版本是3.5。我如何更新cordova模板。或者,您是否有其他版本3或更高版本的cordova模板的链接?是的,您可以尝试此链接:或在此处查找cordova的所有档案:将尝试让您知道@Damien