[英]Windows phone 8 emulator debugging error: “a specified communication resource (port) is already in use by another application”
[英]VS 2015 - WP8 - “A specified communication resource (port) is already in use by another application.”
我有以下解決方案:
我在我的電腦上安裝了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項目。
指定的通信資源(端口)已被另一個應用程序使用。
在狀態欄中: 啟動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\\
文件夾的內容。 什么VS2013知道什么是VS2015?
作為解決方法,對於WP8項目:
但目標是能夠在VS2015中使用WP8仿真器。
在VS2015中使用WP8.1仿真器。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.