C# VS 2015-WP8-“第8版”;指定的通信资源(端口)已被另一个应用程序使用。”;

C# VS 2015-WP8-“第8版”;指定的通信资源(端口)已被另一个应用程序使用。”;,c#,windows-phone-8,visual-studio-2013,visual-studio-2015,windows-phone-8-emulator,C#,Windows Phone 8,Visual Studio 2013,Visual Studio 2015,Windows Phone 8 Emulator,我有以下解决方案: WP8项目 WP8.1项目 UWP项目 Android项目 PCLs 我的电脑上安装了更新为5的VS2013和更新为1的VS2015。 操作系统是Windows 10.0.10586.318 由于其他原因,我重新安装了整个电脑,这是一个全新的安装。 注意:在重新安装之前,我使用了带有更新2的VS2015(以及带有更新5的VS2013),但出现了相同的问题。因此,安装更新2似乎不是一个解决方案 在Configuration Manager中,Android、WP8和WP8.

我有以下解决方案:

  • WP8项目
  • WP8.1项目
  • UWP项目
  • Android项目
  • PCLs
我的电脑上安装了更新为5的VS2013和更新为1的VS2015。
操作系统是Windows 10.0.10586.318 由于其他原因,我重新安装了整个电脑,这是一个全新的安装。

注意:在重新安装之前,我使用了带有更新2的VS2015(以及带有更新5的VS2013),但出现了相同的问题。因此,安装更新2似乎不是一个解决方案

在Configuration Manager中,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 ==========
当我尝试开始调试时,只有一个VS2015实例正在运行,其他的都没有

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

  • 幸运的是,我的用户名中没有任何非拉丁字符
  • 已尝试删除
    …\AppData\Local\Microsoft\Phone Tools\CoreCon\
    文件夹的内容
  • 2015年重新启动
  • 等等
VS2013知道什么VS2015不知道什么

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

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

但我们的目标是能够在VS2015中使用WP8 emulator。

在VS2015中使用WP8.1 emulator。

这里也有同样的问题。是的,这正是我现在所做的解决方法。但目标是能够在VS2015中使用WP8 emulator。无论如何,我将很快停止为WP8开发,因为WP8、WP8.1和W10M都被微软抛弃了。在我停止为WP8开发之前,我可以一直使用这种变通方法。我在WP8.1 emulator中遇到了完全相同的问题,我使用的是VS2015更新3。我正在运行Windows10Ent1803OSBuild17134.112版本