错误消息“无法在Windows Phone 8目标上调试Apache Cordova应用程序”

时间:2015-03-30 07:46:39

标签: windows-phone-8.1 visual-studio-cordova

我正在尝试在Visual Studio for Windows Phone 8.1中调试Apache Cordova项目。该应用程序最初构建于多个平台的phonegap构建,但由于我需要调试它,我需要在visual studio中重新创建它。

当我尝试调试应用程序(VS中的F5)时,会出现以下警告消息 “无法在Windows Phone 8目标上调试Apache Cordova应用程序。请参阅备选文档:http://go.microsoft.com/fwlink/?LinkId=511664&clcid=0x409 DFO_wp81

我正在使用Tools for Cordova版本0.3.110414.2运行visual studio 2015预览版。我正在使用Windows 8.1更新1的物理设备,该问题也出现在8.1模拟器中。

项目的平台设置为Windows Phone(通用),项目的config.xml将windows phone 8.1作为目标:

<?xml version="1.0" encoding="utf-8"?>
<widget xmlns:cdv="http://cordova.apache.org/ns/1.0" xmlns:vs="http://schemas.microsoft.com/appx/2014/htmlapps" id="io.cordova.DFOwp81" version="1.0.0.0" xmlns="http://www.w3.org/ns/widgets">
  <name>DFO_wp81</name>
  <description>A blank project that uses Apache Cordova to help you build an app that targets multiple mobile platforms: Android, iOS, Windows, and Windows Phone.</description>
  <author href="http://cordova.io" email="dev@cordova.apache.org">Apache Cordova Team </author>
  <content src="index.html" />
  <access origin="*" />
  <preference name="SplashScreen" value="screen" />
  <preference name="windows-target-version" value="8.1" />
  <preference name="windows-phone-target-version" value="8.1" />
  <vs:plugin name="org.apache.cordova.console" version="0.2.11" />
  <vs:platformSpecificValues />
</widget>

我错过了项目的一些配置吗?

1 个答案:

答案 0 :(得分:1)

建议您卸载VS 2015预览版(以及包括Cordova工具在内的所有相关组件)并安装latest VS 2015 CTP版本。