6

我有以下内容的解决方案:VS 2015 - WP8 - “指定的通信资源(端口)已被其他应用程序使用。”

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

我都带Update 5的VS2013VS2015带Up日期1安装在我的电脑上。
操作系统是Windows 10.0.10586.318
这是一个新的安装,因为我重新安装整个PC等原因所致。

注意:在重新安装之前,我使用VS2015更新2(和VS2013更新5),但同样的问题发生。所以安装Update 2似乎不是一个解决方案。

在Configuration Manager了Android,WP8和WP8.1项目的 “部署” 一栏进行检查。

我想用WP8模拟器调试我WP8项目。

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

A中规定的通信资源(端口)是已被另一应用程序使用。
在状态栏中:启动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仿真器。

+0

在这里有相同的问题。 – Omeed

回答

0

在VS2015中使用WP8.1仿真器。

+0

是的,那正是我现在所做的解决方法。但目标是能够在VS2015中使用WP8仿真器。无论如何,我将很快停止为WP8开发WP8,WP8.1和W10M被微软抛弃。我可以接受解决方法,直到我停止为WP8开发。 – Gabor

相关问题