簡體   English   中英

VS 2015 - WP8 - “指定的通信資源(端口)已被其他應用程序使用。”

[英]VS 2015 - WP8 - “A specified communication resource (port) is already in use by another application.”

我有以下解決方案:

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

我在我的電腦上安裝了VS2013和Update 5以及VS2015和Update 1
操作系統是Windows 10.0.10586.318
由於其他原因我重新安裝了整個PC,這是一個全新的安裝。

注意:在重新安裝之前,我使用VS2015和Update 2(和VS2013和Update 5),但是出現了同樣的問題。 因此,安裝Update 2似乎不是一個解決方案。

在Configuration Manager中,將在“Deploy”列中檢查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仿真器。

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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM