错误消息 "Unable to debug Apache Cordova apps on Windows Phone 8 targets"

Error message "Unable to debug Apache Cordova apps on Windows Phone 8 targets"

我正尝试在 Visual Studio 中针对 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

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

项目的平台设置为WindowsPhone(通用),项目的config.xml指的是windowsphone8.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>

我是否遗漏了项目的一些配置?

我建议您卸载 VS 2015 预览版(以及所有依赖组件,包括 Cordova 工具)并安装 latest VS 2015 CTP 构建。