【发布时间】:2016-09-30 00:53:05
【问题描述】:
我有以下解决方案:
- WP8 项目
- WP8.1 项目
- UWP 项目
- Xamarin.Android 项目
- PCL
我的 PC 上同时安装了 VS2013 with Update 5 和 VS2015 with Update 1。
操作系统是 Windows 10.0.10586.318。
这是全新安装,因为我因其他原因重新安装了整台电脑。 p>
注意:在重新安装之前,我使用带有 Update 2 的 VS2015(以及带有 Update 5 的 VS2013),但发生了同样的问题。所以安装 Update 2 似乎不是一个解决方案。
在配置管理器中,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\文件夹的内容。 - 重启VS2015。
- 等
VS2013 知道什么 VS2015 不知道什么?
作为一种解决方法,对于 WP8 项目:
- 我可以通过VS2013来使用WP8模拟器。
- 我可以在VS2015中使用WP8.1模拟器。
但目标是能够在VS2015中使用WP8模拟器。
【问题讨论】:
-
这里有同样的问题。
标签: c# windows-phone-8 visual-studio-2013 visual-studio-2015 windows-phone-8-emulator