首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >VS 2015 - WP8 -“指定的通信资源(端口)已经被另一个应用程序使用。”

VS 2015 - WP8 -“指定的通信资源(端口)已经被另一个应用程序使用。”
EN

Stack Overflow用户
提问于 2016-05-31 20:49:27
回答 1查看 691关注 0票数 5

我有以下几个解决办法:

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

我在我的PC上安装了带有更新5( 5 )的VS2013和带有更新1( Update 1 )的VS2015。

操作系统为Windows10.0.10586.318。

这是一个新的安装,因为我重新安装了整个PC由于其他原因.

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

在Configuration中,Android、WP8和WP8.1项目在“部署”列中签入。

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

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

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

在输出窗口中:

代码语言:javascript
复制
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仿真器。

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

EN

回答 1

Stack Overflow用户

发布于 2017-12-22 20:31:04

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

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/37555368

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档