VS 2015 - WP8 - "指定的通信资源(端口)已被其他应用程序使用."

Gab*_*bor 5 c# windows-phone-8 windows-phone-8-emulator visual-studio-2013 visual-studio-2015

我有以下解决方案:

  • WP8项目
  • WP8.1项目
  • UWP项目
  • Xamarin.Android项目
  • PCLS

我在我的电脑上安装了VS2013和Update 5以及VS2015和Update 1.
操作系统是Windows 10.0.10586.318.
由于其他原因我重新安装了整个PC,这是一个全新的安装.

注意:在重新安装之前,我使用VS2015和Update 2(和VS2013和Update 5),但是出现了同样的问题.因此,安装Update 2似乎不是一个解决方案.

在Configuration Manager中,将在"Deploy"列中检查Android,WP8和WP8.1项目.

我想使用WP8模拟器来调试我的WP8项目.

  • 在VS2013中它按预期工作.
  • 在VS2015中,我可以在WP8.1仿真器中调试WP8应用程序,但不能在WP8仿真器中调试.
    部署成功但出现以下错误消息:

指定的通信资源(端口)已被另一个应用程序使用.
在状态栏中:启动TaskHost.exe失败.

在输出窗口中:

1>------ Build started: Project: X.Y.WP8, Configuration: Debug Any CPU ------
1>  X.Y.WP8 -> D:\Programs\DotNET\Visual Studio 2015 Projects\Y\X.Y.WP8\Bin\Debug\X.Y.WP8.dll
1>  Begin application manifest generation
1>  No changes detected. Application manifest file is up to date
1>  Begin Xap packaging
1>  Creating file X.Y.WP8_Debug_AnyCPU.xap
1>  Adding .... (lots of files)
1>  Xap packaging completed successfully
2>------ Deploy started: Project: X.Y.WP8, Configuration: Debug Any CPU ------
2>Deploying D:\Programs\DotNET\Visual Studio 2015 Projects\Y\X.Y.WP8\Bin\Debug\X.Y.WP8_Debug_AnyCPU.xap...
2>Connecting to Emulator WVGA 512MB...
2>The application is already installed on the device. Checking if an incremental deployment is possible...
2>Doing full deployment as project was cleaned and rebuilt...
2>Uninstalling the application...
2>Installing the application...
2>Updating information related to installed files...
2>Deployment of D:\Programs\DotNET\Visual Studio 2015 Projects\Y\X.Y.WP8\Bin\Debug\X.Y.WP8_Debug_AnyCPU.xap succeeded.
========== Build: 1 succeeded, 0 failed, 3 up-to-date, 0 skipped ==========
========== Deploy: 1 succeeded, 0 failed, 0 skipped ==========
Run Code Online (Sandbox Code Playgroud)

当我尝试开始调试时,只有一个VS2015实例正在运行,没有别的.

我读了很多关于相同或类似问题的答案,但没有一个有效.

  • 幸运的是,我的用户名中没有任何非拉丁字符.
  • 试图删除...\AppData\Local\Microsoft\Phone Tools\CoreCon\文件夹的内容.
  • 重启VS2015.
  • 等等

什么VS2013知道什么是VS2015?

作为解决方法,对于WP8项目:

  • 我可以使用VS2013来使用WP8模拟器.
  • 我可以在VS2015中使用WP8.1仿真器.

但目标是能够在VS2015中使用WP8仿真器.

小智 0

在VS2015中使用WP8.1模拟器。