【发布时间】:2015-03-30 07:46:39
【问题描述】:
我正在尝试在 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=0x409DFO_wp81
我正在使用 Tools for Cordova 版本 0.3.110414.2 运行 Visual Studio 2015 预览版。我正在使用带有 Windows 8.1 更新 1 的物理设备,并且该问题也出现在 8.1 模拟器中。
项目的平台设置为 Windows Phone (Universal),项目的 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>
我是否缺少项目的一些配置?
【问题讨论】:
标签: windows-phone-8.1 visual-studio-cordova