美文网首页
关于将build 后发布到hololens时,“error MS

关于将build 后发布到hololens时,“error MS

作者: 路易斯想静静 | 来源:发表于2019-02-19 12:14 被阅读0次

    放假之前一不小心剁了手,买了mbp,然而在开发hololens的时候还是要用到win10 的一系列东西,所以还是装了虚拟机,此为背景(此处省略一万字在虚拟机下安装hololens的开发环境),y因为之前在pc上没有碰到过这个问题。

    然而在一切即将完成,却发现报了一长串错误,如下:

    1>\\Mac\Home\Desktop\HololensProjects\MedicalTraning\MedicalTraning.csproj(331,9): error MSB3073: 命令“"\\Mac\Home\Desktop\HololensProjects\Unity\Tools\AssemblyConverter.exe" -platform=uap -lock="\\Mac\Home\Desktop\HololensProjects\MedicalTraning\project.lock.json" -bits=32 -configuration=Release -removeDebuggableAttribute=False -uwpsdk=10.0.15063.0 -path="." -path="C:\Program Files\Unity5.6.1\Unity\Editor\Data\PlaybackEngines\MetroSupport\Players\UAP\dotnet\x86\Release" "\\Mac\Home\Desktop\HololensProjects\MedicalTraning\Assembly-CSharp-firstpass.dll" "\\Mac\Home\Desktop\HololensProjects\MedicalTraning\Assembly-CSharp.dll" "\\Mac\Home\Desktop\HololensProjects\MedicalTraning\UnityEngine.dll" "\\Mac\Home\Desktop\HololensProjects\MedicalTraning\UnityEngine.Analytics.dll" "\\Mac\Home\Desktop\HololensProjects\MedicalTraning\nunit.framework.dll" "\\Mac\Home\Desktop\HololensProjects\MedicalTraning\UnityEngine.UI.dll" "\\Mac\Home\Desktop\HololensProjects\MedicalTraning\DOTween46.dll" "\\Mac\Home\Desktop\HololensProjects\MedicalTraning\UnityEngine.HoloLens.dll" "\\Mac\Home\Desktop\HololensProjects\MedicalTraning\DOTween50.dll" "\\Mac\Home\Desktop\HololensProjects\MedicalTraning\DemiLib.dll" "\\Mac\Home\Desktop\HololensProjects\MedicalTraning\DOTween43.dll" "\\Mac\Home\Desktop\HololensProjects\MedicalTraning\Vuforia.UnityExtensions.dll" "\\Mac\Home\Desktop\HololensProjects\MedicalTraning\UnityEngine.Networking.dll" "\\Mac\Home\Desktop\HololensProjects\MedicalTraning\DOTween.dll" "\\Mac\Home\Desktop\HololensProjects\MedicalTraning\HoloLensXboxController.dll" "\\Mac\Home\Desktop\HololensProjects\MedicalTraning\DOTweenPro.dll" "\\Mac\Home\Desktop\HololensProjects\MedicalTraning\UnityEngine.VR.dll"”已退出,代码为 1。

    我一度陷入崩溃,开始完全看不出头绪,找了一圈。最后找到大概是win10SDK的问题,解决方法如下:

    在发布出来的工程中找到所有project.lock.json文件,打开,把其中“UAP,Version=v10.0.xxxxx" 这一项改为“UAP,Version=v10.0"保存,ok

    相关文章

      网友评论

          本文标题:关于将build 后发布到hololens时,“error MS

          本文链接:https://www.haomeiwen.com/subject/eymxyqtx.html