用于Windows Phone 8.1的VS2015 cordova仿真器失败

时间:2015-02-16 10:58:35

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

当我在Windows 8.1手机模拟器上从visual studio 2015 CTP 5(在Windows 8.1 enterprise x64上运行)部署cordova应用程序时,出现以下错误:

Error   Unable to connect to the Microsoft Visual Studio Remote Debugging Monitor 
named '169.254.72.195:8116'.  
The remote debugger is not an acceptable version.   

我已经通过Visual Studio 2015 CTP 5安装了最新版本的Windows Phone 8.1 SDK和模拟器。

模拟器正在启动并进入Windows,但是当它尝试部署应用程序时,它会失败。 以下是构建/部署过程的输出:

1>------ Build started: Project: <Project Name>, Configuration: Debug Windows Phone (Universal) ------
1>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\TypeScript\Microsoft.TypeScript.targets(102,5): warning : The TypeScript Compiler was given no files for compilation, so it will skip compiling.
1>  GeneratedJavascript=
1>  D:\Dev\Mobile\<Project Name>\<OneShare Mobile>>call "C:\Program Files (x86)\nodejs\"\nodevars.bat 
1>  Your environment has been set up for using Node.js 0.10.33 (ia32) and npm.
1>  ------ Ensuring correct global installation of package from source package directory: C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\glvgt5lz.2qp\packages\vs-mda
2>------ Deploy started: Project: <project name>, Configuration: Debug Windows Phone (Universal) ------
2>Unable to connect to the Microsoft Visual Studio Remote Debugging Monitor named '169.254.72.195:8116'.  The remote debugger is not an acceptable version.
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
========== Deploy: 0 succeeded, 1 failed, 0 skipped ==========

我已经检查过模拟器有那个确切的IP地址,因为我可以到http://www.google.com

VS2015在构建期间报告错误,如果我对问题说“是”,如果我想继续,则会收到此错误:

Value cannot be null. Parameter name: source

当我尝试使用Windows 8或Android模拟器时,我没有任何问题。

1 个答案:

答案 0 :(得分:1)

我遇到了同样的问题,但有一个解决方法。通过“Windows Phone应用程序部署8.1”程序进行手动部署将起作用。

您可以在“\ bld \ Debug \ platforms \ windows \ AppPackages”文件夹中找到要部署的程序包。请注意, Debug 是构建配置, Windows 是目标平台。