Hololens2打包发生错误,errorcode1,主要原因如下:
C:\ProgramFiles\MicrosoftVisualStudio\2022\Community\MSBuild\Microsoft\WindowsXaml\v17.0\8.2\Microsoft.Windows.UI.Xaml.Common.targets(415,5): error MSB4181: CompileXaml false [C:\ASVN\HeLHYARHol\Builds\WSAPlayer\HLHY_mul\HLHY_mul.vcxproj]
C:\ASVN\HeLHYARHol\Builds\WSAPlayer\HLHY_mul\pch.cpp : fatal error C1192: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.32.31326\lib\x86\store\references\platform.winmd [C:\ASVN\HeLHYARHol\Builds\WSAPlayer\HLHY_mul\HLHY_mul.vcxproj]
UnityEngine.Debug:Log (object)
Microsoft.MixedReality.Toolkit.ProcessExtensions/<>c__DisplayClass1_0:g__OnOutputDataReceived|2 (object,System.Diagnostics.DataReceivedEventArgs) (at Assets/MRTK/Core/Extensions/ProcessExtensions.cs:104)
System.Threading._ThreadPoolWaitCallback:PerformWaitCallback ()
定位原因:MSVC构建文件有遗漏,14.32.31326的Lib文件缺少x86平台的构建资料
解决方案:粘贴上级目录14.38.33130下面的所有文件到14.32.31326文件夹,偷梁换柱,使用其他版本的sdk进行构建。
问题解决。