Visual Studio 2017 无法将 UWP 应用程序部署到 IoT 设备

Visual Studio 2017 fails to deploy UWP apps to IoT device

Visual Studio (VS 2017) 开始无法部署到我的物联网设备...我最近开始使用更新版本的 Windows 10 IoT Core(从 build 17134 to insider build 17692) 和 Visual Studio 无法再部署 UWP 应用程序。

报告的错误是:

DEP6957: Failed to connect to device [IP Address] using Universal Authentication. Please verify the correct remote authentication mode is specified in the project debug settings. COMException - Exception from HRESULT: 0x801C0003

IP 地址有效,VS 可以看到设备。

这似乎是一个错误,反映出安装在 Visual Studio 机器上的 Windows SDK 与 IoT 设备上的 OS 版本不匹配。

对于 Windows 10 IoT Core 的最新版本(我使用的是您可以通过 Windows IoT 仪表板安装的内部图像),Windows 的最新版本您的部署机器上必须安装 SDK(我使用 Windows 10 SDK 1803)。

还如上所述卸载并重新安装了 VS 的 UWP 部分。

最后我点了"update"整个VS安装(Visual Studio安装程序)。一夜之间从网上提取了 4GB,早上一切正常...