我在 Visual Studio 2015 Community 上正常编码,在我的 Lumia Icon 设备上进行了一些部署,但突然,当我使用 OAuth 2.0 开发一个应用程序以与 LinkedIn 交互并尝试部署此应用程序时,Visual Studio 开始崩溃,我得到了错误列表
2>------ Deploy started: Project: OAuth2, Configuration: Debug Any CPU ------
2>Deploying X:\...\...\Documents\Visual Studio 2015\Projects\OAuth2\OAuth2\Bin\Debug\OAuth2_Debug_AnyCPU.xap...
2>Connecting to Device...
2>Deployment of application to device failed.
2>External component has thrown an exception.
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
========== Deploy: 0 succeeded, 1 failed, 0 skipped ==========
现在我尝试在手机上部署的任何应用程序都会发生这种情况(我已经尝试使用 VS2013 并遇到了同样的问题)。 我的设备已开启“开发者模式”并已解锁以部署 WP 应用程序。
Lumia 图标:运行 Windows 10 Mobile Build 10586
有人遇到过这个问题吗?
更新:错误框显示此内容
Error : DEP6100 : The following unexpected error occurred during bootstrapping stage 'Connecting to the device'
最佳答案
如果您没有安装 VS 2015 Update 1,请安装:
https://www.visualstudio.com/en-us/news/vs2015-update1-vs.aspx
如果已安装,则 Windows 10 SDK 可能已过时。参见
https://dev.windows.com/en-US/downloads/windows-10-sdk
...用于独立 SDK 安装程序。
关于c# - 无法在 Windows 10 移动版上部署,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34023460/