放假之前一不小心剁了手,买了mbp,然而在开发hololens的时候还是要用到win10 的一系列东西,所以还是装了虚拟机,此为背景(此处省略一万字在虚拟机下安装hololens的开发环境),y因为之前在pc上没有碰到过这个问题。
然而在一切即将完成,却发现报了一长串错误,如下:
1>\MacHomeDesktopHololensProjectsMedicalTraningMedicalTraning.csproj(331,9): error MSB3073: 命令“"\MacHomeDesktopHololensProjectsUnityToolsAssemblyConverter.exe" -platform=uap -lock="\MacHomeDesktopHololensProjectsMedicalTraningproject.lock.json" -bits=32 -configuration=Release -removeDebuggableAttribute=False -uwpsdk=10.0.15063.0 -path="." -path="C:Program FilesUnity5.6.1UnityEditorDataPlaybackEnginesMetroSupportPlayersUAPdotnetx86Release" "\MacHomeDesktopHololensProjectsMedicalTraningAssembly-CSharp-firstpass.dll" "\MacHomeDesktopHololensProjectsMedicalTraningAssembly-CSharp.dll" "\MacHomeDesktopHololensProjectsMedicalTraningUnityEngine.dll" "\MacHomeDesktopHololensProjectsMedicalTraningUnityEngine.Analytics.dll" "\MacHomeDesktopHololensProjectsMedicalTraningnunit.framework.dll" "\MacHomeDesktopHololensProjectsMedicalTraningUnityEngine.UI.dll" "\MacHomeDesktopHololensProjectsMedicalTraningDOTween46.dll" "\MacHomeDesktopHololensProjectsMedicalTraningUnityEngine.HoloLens.dll" "\MacHomeDesktopHololensProjectsMedicalTraningDOTween50.dll" "\MacHomeDesktopHololensProjectsMedicalTraningDemiLib.dll" "\MacHomeDesktopHololensProjectsMedicalTraningDOTween43.dll" "\MacHomeDesktopHololensProjectsMedicalTraningVuforia.UnityExtensions.dll" "\MacHomeDesktopHololensProjectsMedicalTraningUnityEngine.Networking.dll" "\MacHomeDesktopHololensProjectsMedicalTraningDOTween.dll" "\MacHomeDesktopHololensProjectsMedicalTraningHoloLensXboxController.dll" "\MacHomeDesktopHololensProjectsMedicalTraningDOTweenPro.dll" "\MacHomeDesktopHololensProjectsMedicalTraningUnityEngine.VR.dll"”已退出,代码为 1。
我一度陷入崩溃,开始完全看不出头绪,找了一圈。最后找到大概是win10SDK的问题,解决方法如下:
在发布出来的工程中找到所有project.lock.json文件,打开,把其中“UAP,Version=v10.0.xxxxx" 这一项改为“UAP,Version=v10.0"保存,ok