无法从 VS2017 将 UWP 应用部署到树莓派

编程入门 行业动态 更新时间:2024-10-11 09:26:26
本文介绍了无法从 VS2017 将 UWP 应用部署到树莓派的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

好的,所以我和这个人有同样的问题,我正在尝试使用我的 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 应用部署到树莓派

本文发布于:2023-11-16 01:53:02,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1599929.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:UWP   到树莓派

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!