c# - 无法在 Windows 10 移动版上部署

标签 c# deployment windows-phone-8.1 visual-studio-2015 windows-10-mobile

我在 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/

相关文章:

c# - WebAPI - 为子域启用 CORS

c# - 尝试在 Windows 10 通用应用程序中使用 JSON.NET 反序列化对象失败并出现 FileNotFoundException

deployment - 尝试使用 TeamCity 8 部署 SSDT 项目时文件名无效

django - React 和 Nginx 在使用 axios 时弄乱了 url,不正确的 API 调用

c# - 如何在 Windows Phone 8 中获取通话记录?

C# DateTime 解析/转换此格式 "20120314T130000"

c# - 对象引用未设置到对象错误的实例

java - 两个struts2 webapps一起启动失败

c# - 确保数据反序列化/序列化

c++ - 适用于 Windows Phone 8.1 的最小应用程序(无 XAML): differences with desktop app