好的,所以我和这个人有同样的问题,我正在尝试使用我的 PC 将带有 VS2017 15.5.4 的 UWP 应用程序部署到 Raspberry pi 3,但出现此错误:
ok so i have the same problem as this guy, im trying to deploy an UWP app with VS2017 15.5.4 to Raspberry pi 3 using my PC but getting this error:
1>------ Build started: Project: SerialSample, Configuration: Debug ARM ------ 1>C:\Users\sco1o\OneDrive\Skripsi\Research\SerialUART\CS\MainPage.xaml.cs(220,42,220,45): warning CS0168: The variable 'tce' is declared but never used 1> SerialSample -> C:\Users\sco1o\OneDrive\Skripsi\Research\SerialUART\CS\bin\ARM\Debug\SerialSample.exe 2>------ Deploy started: Project: SerialSample, Configuration: Debug ARM ------ 2>DEP6100: The following unexpected error occurred during bootstrapping stage 'Connecting to the device '192.168.1.10'.': FileNotFoundException - Could not load file or assembly 'Microsoft.Tools.Connectivity, Version=10.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. [0x80070002] ========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ========== ========== Deploy: 0 succeeded, 1 failed, 0 skipped ==========我的调试配置
我的目标版本是 16299 和最小 15063
My Target Build is 16299 and Min 15063
我的电脑运行 Windows 10 Pro 16299
My PC running Windows 10 Pro 16299
我的 Raspberry Pi build 16299.192,连接到 LAN 交换机,无法打开设备门户,ping 显示没有问题
My Raspberry Pi build 16299.192, connected to a LAN switch, im able to open device portal, ping showing no problem
尝试关闭 windows 防火墙和防御者
Tried turning off windows firewall and defender
选中在门户上启用 Windows IoT 远程服务器
Checked Enable Windows IoT Remote Server on portal
尝试在门户上使用/不使用默认帐户手动启动/停止与远程调试器
Tried Start/Stopping vs remote debugger manually with/without default account on portal
尝试将目标远程机器地址框更改为 192.168.1.10、192.168.1.10:8116、minwinpc、MINWINPC
Tried changing target remote machine address box to 192.168.1.10, 192.168.1.10:8116, minwinpc, MINWINPC
尝试了 3 次重新安装 VS,前 2 次使用 cmd 行,最后一次使用 vs 安装程序
Tried 3 times reinstalling VS, first 2 using cmd line, the last is using vs installer
我试过多次重启我的电脑和 pi
I tried restarting my pc and pi several times
尝试将通用身份验证更改为 Windows 和 None,但没有成功
tried changing Universal auth to Windows and None, no luck
尝试了 2 次重新安装 Windows IoT 并在 pi 上更新
tried 2 times reinstalling windows IoT and updating it on pi
然而,我的笔记本电脑可以轻松部署到我的 pi 上而不会出错......
HOWEVER, my laptop can deploy easily to my pi without error....
ps.这个问题是在 2 天前当我尝试在 PC 上重新安装我的 VS 时开始的,在那之前我没有这样的问题
ps. this issue started 2 days ago when i tried reinstalling my VS on PC, i have no issue like this before that
推荐答案这个问题现在已经解决了,这就是我要做的:
This issue is now resolved, here's what i do:
- 卸载旧的 16299 SDK 并下载新的 16299 SDK
- 从 VSInstaller 修复 VS
- 运行 sfc/scannow,有一些损坏的系统文件,但现在已恢复.
感谢法比安的帮助
更多推荐
无法从 VS2017 将 UWP 应用部署到树莓派
发布评论