我有以下解决方案:
- WP8 项目
- WP8.1 项目
- UWP 项目
- Xamarin.Android 项目
- PCL
我的电脑上安装了 VS2013 with Update 5 和 VS2015 with Update 1。
操作系统是Windows 10.0.10586.318。
由于其他原因我重新安装了整个 PC,这是全新安装。
注意:在重新安装之前,我使用了带有更新 2 的 VS2015(以及带有更新 5 的 VS2013),但出现了同样的问题。所以安装 Update 2 似乎不是一个解决方案。
在配置管理器中,Android、WP8 和 WP8.1 项目在“部署”列中选中。
我想使用 WP8 模拟器来调试我的 WP8 项目。
- 在 VS2013 中,它按预期工作。
- 在 VS2015 中,我可以在 WP8.1 模拟器中调试 WP8 应用程序,但不能在 WP8 模拟器中调试。
部署成功但出现以下错误信息:
A specified communication resource (port) is already in use by another application.
In the statusbar: Launching TaskHost.exe failed.
在输出窗口中:
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\
文件夹的内容。 - 重新启动 VS2015。
- 等等
VS2013 知道什么 VS2015 不知道什么?
作为 WP8 项目的解决方法:
- 我可以使用VS2013来使用WP8模拟器。
- 我可以在VS2015中使用WP8.1模拟器。
但目标是能够在VS2015中使用WP8模拟器。
最佳答案
在VS2015中使用WP8.1模拟器。
关于c# - VS 2015-WP8- "A specified communication resource (port) is already in use by another application.",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37555368/