Build failed for UWP

Hello everybody,I need help,
I am trying to create an App for the Hololens2, unity build is OK,but when use VS2019 to build it fails with the following log statements:

Build started

1> ---- build started: Project: il2cppoutproject, configuration: release arm------

1>‘���\C���ZL�j��’ �����ڲ����ⲿ���Ҳ���ǿ����еij���

1>���������ļ���

1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\ Microsoft.MakeFile.Targets (46, 5) : error msb3073: command "D: / / unityproject / mr2018 / mr2018 / mr2018 / il2cppoutproject / il2cpp / build / IL2 cpp.exe " --libil2cpp-static --compile-cpp -architecture=ARMv7 -configuration=Release -platform=winrt -outputpath="D:\UnityProject\mr2018\mr2018\mr2018\build\bin\ARM\Release\ GameAssembly.dll " --data-folder=“D:\UnityProject\mr2018\mr2018\mr2018\build\bin\ARM\Release\” -cachedirectory=“D:\UnityProject\mr2018\mr2018\mr2018\build\obj\il2cppOutputProject\ARM\Release\” -generatedcppdir=“D:\UnityProject\mr2018\mr2018\mr2018\Il2CppOutputProject\Source” --additional-defines=WINDOWS_ UWP --additional-defines=UNITY_ UWP --additional-defines=UNITY_ WSA_ 10_ 0 --additional-defines=UNITY_ WSA --additional-defines=UNITY_ WINRT --additional-defines=PLATFORM_ WINRT -dotnetprofile=unityaot -verbose --relative-data-path=Data/il2cpp_ data --map-file-parser="D:\UnityProject\mr2018\mr2018\mr2018\Il2CppOutputProject\IL2CPP\MapFileParser\ MapFileParser.exe 'exited with code 1.

1> Finished building project ‘IL2’ CppOutputProject.vcxproj ”Operation for - failed.

2> ---- build started: Project: mr2018, configuration: release arm------

2> pch.cpp

2> App.cpp

2> Main.cpp

2> UnityGenerated.cpp

2>D:\UnityProject\mr2018\mr2018\mr2018\mr2018\ App.cpp (26,1): warning c4973: “windows:: UI:: viewmanagement:: iaapplicationview2:: suppresssystemoverlays:: set”: marked as obsolete

2>D:\UnityProject\mr2018\mr2018\mr2018\mr2018\ App.cpp (26,1): Message: “use the tryenterfullscreen method and isfullscreen mode property instead of suppresssystemoverlays. For more info, see MSDN.”

2> Link: fatal error lnk1181: unable to open the input file “D: unityproject / mr2018 / mr2018 / mr2018 / build / bin / arm / release”\ GameAssembly.lib ”

2> Finished building project ‘mr2018. Vcxproj’ - failed.

==========Generation: 0 succeeded, 2 failed, 0 latest, 0 skipped==========

==========Deployment: 0 succeeded, 0 failed, 0 skipped==========

I have no idea, I have trying with other computer,the problem show too.god.

Can you show the contents of the “Output” window in Visual Studio?

I can show the contents of the “Output” window in Visual Studio,Not many words.This is the picture,The only difference is that the picture shows Chinese.

Build started

1> ---- build started: Project: il2cppoutproject, configuration: release arm------

1>'���\C���ZL�j��' �����ڲ����ⲿ���Ҳ���ǿ����еij���

1>���������ļ���

1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\ Microsoft.MakeFile.Targets (46, 5) : error msb3073: command "D: / / unityproject / mr2018 / mr2018 / mr2018 / il2cppoutproject / il2cpp / build / IL2 cpp.exe " --libil2cpp-static --compile-cpp -architecture=ARMv7 -configuration=Release -platform=winrt -outputpath="D:\UnityProject\mr2018\mr2018\mr2018\\build\bin\ARM\Release\ GameAssembly.dll " --data-folder="D:\UnityProject\mr2018\mr2018\mr2018\\build\bin\ARM\Release\\" -cachedirectory="D:\UnityProject\mr2018\mr2018\mr2018\\build\obj\il2cppOutputProject\ARM\Release\\" -generatedcppdir="D:\UnityProject\mr2018\mr2018\mr2018\Il2CppOutputProject\\Source" --additional-defines=WINDOWS_ UWP --additional-defines=UNITY_ UWP --additional-defines=UNITY_ WSA_ 10_ 0 --additional-defines=UNITY_ WSA --additional-defines=UNITY_ WINRT --additional-defines=PLATFORM_ WINRT -dotnetprofile=unityaot -verbose --relative-data-path=Data/il2cpp_ data --map-file-parser="D:\UnityProject\mr2018\mr2018\mr2018\Il2CppOutputProject\\IL2CPP\MapFileParser\ MapFileParser.exe 'exited with code 1.

1> Finished building project 'IL2' CppOutputProject.vcxproj ”Operation for - failed.

2> ---- build started: Project: mr2018, configuration: release arm------

2> pch.cpp

2> App.cpp

2> Main.cpp

2> UnityGenerated.cpp

2>D:\UnityProject\mr2018\mr2018\mr2018\mr2018\ App.cpp (26,1): warning c4973: "windows:: UI:: viewmanagement:: iaapplicationview2:: suppresssystemoverlays:: set": marked as obsolete

2>D:\UnityProject\mr2018\mr2018\mr2018\mr2018\ App.cpp (26,1): Message: "use the tryenterfullscreen method and isfullscreen mode property instead of suppresssystemoverlays. For more info, see MSDN."

2> Link: fatal error lnk1181: unable to open the input file "D: unityproject / mr2018 / mr2018 / mr2018 / build / bin / arm / release"\ GameAssembly.lib ”

2> Finished building project 'mr2018. Vcxproj' - failed.

==========Generation: 0 succeeded, 2 failed, 0 latest, 0 skipped==========

==========Deployment: 0 succeeded, 0 failed, 0 skipped==========

That is bizarre. Could you try switching to “ExecutableOnly” build type in Unity build settings and try building to an empty folder? Hopefully that gives a better error message.

I have build switch “ExecutableOnly”, but I dont know how to do the next.:frowning:

Huh, so executable only build succeeds. Hmm, I wonder what’s different when running from Visual Studio…

In Visual Studio output window, there is this line:

1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\ Microsoft.MakeFile.Targets (46, 5) : error msb3073: command '.....' exited with code 1.

Could you try copying the command that it’s trying to run into a command prompt and running it? It seems that when it’s run from VS, the output gets mangled and the actual error is lost. Perhaps running it from a command line will not mangle it.

the mr4.exe cannot run,but I build APPX with MRTK show the same error. I don’t know if it helps

Ťthis is log

6995600–826394–log.txt (109 KB)

Can you try running this command line from cmd line directly?

"D:\UnityProject\mr4\mr4\Builds\WSAPlayer\Il2CppOutputProject\\IL2CPP\build\deploy\net471\il2cpp.exe" --libil2cpp-static --compile-cpp -architecture=x64 -configuration=Release -platform=winrt -outputpath="D:\UnityProject\mr4\mr4\Builds\WSAPlayer\\build\bin\x64\Release\GameAssembly.dll" --data-folder="D:\UnityProject\mr4\mr4\Builds\WSAPlayer\\build\bin\x64\Release\\" -cachedirectory="D:\UnityProject\mr4\mr4\Builds\WSAPlayer\\build\obj\il2cppOutputProject\x64\Release\\" -generatedcppdir="D:\UnityProject\mr4\mr4\Builds\WSAPlayer\Il2CppOutputProject\\Source"  --profiler-report --additional-defines=WINDOWS_UWP --additional-defines=UNITY_UWP --additional-defines=UNITY_WSA_10_0 --additional-defines=UNITY_WSA --additional-defines=UNITY_WINRT --additional-defines=PLATFORM_WINRT -dotnetprofile=unityaot -verbose --relative-data-path=Data/il2cpp_data --map-file-parser="D:\UnityProject\mr4\mr4\Builds\WSAPlayer\Il2CppOutputProject\\IL2CPP\MapFileParser\MapFileParser.exe"

cmd can run,and show:

C:\Users\hc>"D:\UnityProject\mr4\mr4\Builds\WSAPlayer\Il2CppOutputProject\\IL2CPP\build\deploy\net471\il2cpp.exe" --libil2cpp-static --compile-cpp -architecture=x64 -configuration=Release -platform=winrt -outputpath="D:\UnityProject\mr4\mr4\Builds\WSAPlayer\\build\bin\x64\Release\GameAssembly.dll" --data-folder="D:\UnityProject\mr4\mr4\Builds\WSAPlayer\\build\bin\x64\Release\\" -cachedirectory="D:\UnityProject\mr4\mr4\Builds\WSAPlayer\\build\obj\il2cppOutputProject\x64\Release\\" -generatedcppdir="D:\UnityProject\mr4\mr4\Builds\WSAPlayer\Il2CppOutputProject\\Source"  --profiler-report --additional-defines=WINDOWS_UWP --additional-defines=UNITY_UWP --additional-defines=UNITY_WSA_10_0 --additional-defines=UNITY_WSA --additional-defines=UNITY_WINRT --additional-defines=PLATFORM_WINRT -dotnetprofile=unityaot -verbose --relative-data-path=Data/il2cpp_data --map-file-parser="D:\UnityProject\mr4\mr4\Builds\WSAPlayer\Il2CppOutputProject\\IL2CPP\MapFileParser\MapFileParser.exe"
Building GameAssembly.dll with MsvcWinRtToolChain
        Msvc Install Version: 15.0
        Msvc Install SDK Directory: C:\Win10SDK
        Msvc Linker Path: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\bin\HostX64\x64\link.exe
        Msvc Compiler Path: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\bin\HostX64\x64\cl.exe

        Output directory: D:\UnityProject\mr4\mr4\Builds\WSAPlayer\build\bin\x64\Release
        Cache directory: D:\UnityProject\mr4\mr4\Builds\WSAPlayer\build\obj\il2cppOutputProject\x64\Release
Il2CppGenericMethodDefinitions.c
Il2CppGenericMethodTable.c
Il2CppGenericMethodPointerTable.cpp
Il2CppMetadataUsage.c
Il2CppCompilerCalculateTypeValues2.cpp
Il2CppInvokerTable.cpp
Il2CppTypeDefinitions.c
Il2CppAttributes.cpp
Il2CppGenericClassTable.c
Il2CppInteropDataTable.cpp
Microsoft.MixedReality.Toolkit.Examples1.cpp
GenericMethods10.cpp
Unity.TextMeshPro.cpp
Il2CppCompilerCalculateTypeValues.cpp
Il2CppCompilerCalculateTypeValues1.cpp
mscorlib_CodeGen.c
mscorlib3.cpp
Generics51.cpp
Microsoft.MixedReality.Toolkit.SDK4.cpp
Microsoft.MixedReality.Toolkit.SDK3.cpp
Microsoft.MixedReality.Toolkit.Examples.cpp
Unity.TextMeshPro1.cpp
GenericMethods2.cpp
Microsoft.MixedReality.Toolkit.SDK.cpp
Microsoft.MixedReality.Toolkit.SDK6.cpp
Il2CppGenericInstDefinitions.c
Microsoft.MixedReality.Toolkit.SDK1.cpp
GenericMethods6.cpp
Microsoft.MixedReality.Toolkit.SDK5.cpp
UnityEngine.UIElementsModule.cpp
Microsoft.MixedReality.Toolkit.Services.InputSystem.cpp
Microsoft.MixedReality.Toolkit4.cpp
GenericMethods8.cpp
GenericMethods5.cpp
GenericMethods11.cpp
Generics3.cpp
Generics9.cpp
GenericMethods1.cpp
mscorlib4.cpp
UnityEngine.UI.cpp
Generics2.cpp
mscorlib10.cpp
Generics24.cpp
Microsoft.MixedReality.Toolkit1.cpp
GenericMethods9.cpp
Microsoft.MixedReality.Toolkit.cpp
Microsoft.MixedReality.Toolkit.SDK2.cpp
Microsoft.MixedReality.Toolkit3.cpp
Generics1.cpp
Generics60.cpp
mscorlib6.cpp
Il2CppComCallableWrappers2.cpp
Microsoft.MixedReality.Toolkit2.cpp
mscorlib17.cpp
Il2CppComCallableWrappers1.cpp
mscorlib16.cpp
mscorlib2.cpp
GenericMethods7.cpp
Il2CppComCallableWrappers12.cpp
Il2CppComCallableWrappers11.cpp
mscorlib7.cpp
Generics.cpp
Unity.TextMeshPro2.cpp
Generics52.cpp
Assembly-CSharp.cpp
GenericMethods.cpp
Generics11.cpp
UnityEngine.UI1.cpp
mscorlib11.cpp
mscorlib.cpp
mscorlib13.cpp
mscorlib12.cpp
Il2CppComCallableWrappers15.cpp
UnityEngine.UI2.cpp
mscorlib8.cpp
mscorlib1.cpp
Generics29.cpp
Generics8.cpp
Generics54.cpp
Generics31.cpp
GenericMethods4.cpp
mscorlib9.cpp
Generics42.cpp
Generics59.cpp
Generics10.cpp
Generics62.cpp
Il2CppComCallableWrappers21.cpp
Il2CppComCallableWrappers26.cpp
Il2CppComCallableWrappers35.cpp
Il2CppComCallableWrappers10.cpp
UnityEngine.CoreModule1.cpp
System.cpp
UnityEngine.CoreModule.cpp
Generics61.cpp
UnresolvedVirtualCallStubs.cpp
Il2CppComCallableWrappers28.cpp
Il2CppComCallableWrappers30.cpp
Il2CppComCallableWrappers25.cpp
Il2CppComCallableWrappers24.cpp
Generics41.cpp
mscorlib14.cpp
Il2CppComCallableWrappers.cpp
mscorlib5.cpp
Generics53.cpp
Il2CppComCallableWrappers27.cpp
Il2CppComCallableWrappers32.cpp
System1.cpp
Il2CppComCallableWrappers22.cpp
Il2CppComCallableWrappers19.cpp
Il2CppComCallableWrappers29.cpp
Il2CppComCallableWrappers20.cpp
Generics12.cpp
Il2CppComCallableWrappers18.cpp
Il2CppComCallableWrappers31.cpp
Generics40.cpp
Generics30.cpp
Unity.TextMeshPro3.cpp
Il2CppComCallableWrappers14.cpp
mscorlib15.cpp
Il2CppComCallableWrappers13.cpp
Generics47.cpp
Il2CppComCallableWrappers17.cpp
Il2CppComCallableWrappers33.cpp
Il2CppComCallableWrappers16.cpp
Microsoft.MixedReality.Toolkit.Providers.WindowsMixedReality.cpp
Il2CppComCallableWrappers5.cpp
Generics63.cpp
Il2CppComCallableWrappers4.cpp
Generics37.cpp
Generics64.cpp
Generics43.cpp
Il2CppComCallableWrappers6.cpp
Generics45.cpp
Generics44.cpp
Il2CppComCallableWrappers7.cpp
Il2CppComCallableWrappers23.cpp
Il2CppComCallableWrappers34.cpp
Generics58.cpp
Il2CppComCallableWrappers9.cpp
Generics35.cpp
Generics67.cpp
Generics56.cpp
Generics36.cpp
Generics55.cpp
Generics4.cpp
Generics23.cpp
Generics66.cpp
Microsoft.MixedReality.Toolkit.Gltf.cpp
Generics15.cpp
Generics57.cpp
UnityEngine.CoreModule2.cpp
Generics14.cpp
Generics17.cpp
Generics49.cpp
Generics48.cpp
Generics46.cpp
Generics50.cpp
Generics21.cpp
Generics13.cpp
GenericMethods3.cpp
Il2CppProjectedComCallableWrapperMethods2.cpp
Generics65.cpp
Generics25.cpp
Il2CppProjectedComCallableWrapperMethods3.cpp
Generics16.cpp
Generics22.cpp
Il2CppProjectedComCallableWrapperMethods.cpp
Generics32.cpp
Il2CppComCallableWrappers3.cpp
Generics7.cpp
Generics39.cpp
Il2CppProjectedComCallableWrapperMethods1.cpp
Generics18.cpp
Il2CppProjectedComCallableWrapperMethods4.cpp
Generics28.cpp
Generics20.cpp
Il2CppComCallableWrappers8.cpp
Generics27.cpp
Generics19.cpp
Generics34.cpp
Generics5.cpp
Generics33.cpp
Microsoft.MixedReality.Toolkit.SDK_CodeGen.c
Generics26.cpp
Generics6.cpp
Microsoft.MixedReality.Toolkit.Services.InputSimulation.cpp
I18N.Rare.cpp
Microsoft.MixedReality.Toolkit_CodeGen.c
Generics38.cpp
Il2CppProjectedComCallableWrapperMethods5.cpp
Il2CppGenericComDefinitions.cpp
mscorlib18.cpp
Microsoft.MixedReality.Toolkit.Services.SceneSystem.cpp
UnityEngine.VRModule.cpp
UnityEngine.IMGUIModule.cpp
Il2CppCompilerCalculateTypeValuesTable.cpp
Microsoft.MixedReality.Toolkit.Providers.XRSDK.cpp
WindowsRuntimeMetadata.cpp
System.Runtime.WindowsRuntime.cpp
GenericMethods12.cpp
Microsoft.MixedReality.Toolkit.Extensions.SceneTransitionService.cpp
UnityEngine.UI3.cpp
I18N.CJK.cpp
UnityEngine.CoreModule_CodeGen.c
I18N.West.cpp
Microsoft.MixedReality.Toolkit.Services.DiagnosticsSystem.cpp
Generics68.cpp
Microsoft.MixedReality.Toolkit.Services.InputAnimation.cpp
I18N.cpp
UnityEngine.AndroidJNIModule.cpp
I18N.Rare1.cpp
UnityEngine.XRModule.cpp
Microsoft.MixedReality.Toolkit.Extensions.HandPhysics.cpp
Microsoft.MixedReality.Toolkit.SDK7.cpp
UnityEngine.UI_CodeGen.c
Microsoft.MixedReality.Toolkit.Providers.XRSDK.WindowsMixedReality.cpp
Microsoft.MixedReality.Toolkit.Providers.WindowsVoiceInput.cpp
char-conversions.cpp
UnityEngine.UnityWebRequestModule.cpp
Unity.TextMeshPro_CodeGen.c
Microsoft.MixedReality.Toolkit.Services.InputSystem1.cpp
Microsoft.MixedReality.Toolkit.Examples_CodeGen.c
Microsoft.MixedReality.Toolkit.Providers.WindowsMixedReality.Shared.cpp
Microsoft.MixedReality.Toolkit5.cpp
I18N.Other.cpp
System2.cpp
Microsoft.MixedReality.Toolkit.Async.cpp
UnityEngine.AnimationModule.cpp
UnityEngine.TextCoreModule.cpp
UnityEngine.TerrainModule.cpp
UnityEngine.UIElementsModule1.cpp
I18N.MidEast.cpp
UnityEngine.PhysicsModule.cpp
UnityEngine.UIModule.cpp
UnityEngine.TextRenderingModule.cpp
Il2CppComCallableWrappers36.cpp
System.Numerics.cpp
System_CodeGen.c
Microsoft.MixedReality.Toolkit.Services.TeleportSystem.cpp
Microsoft.MixedReality.Toolkit.Services.SpatialAwarenessSystem.cpp
UnityEngine.UIElementsModule_CodeGen.c
Microsoft.MixedReality.Toolkit.Examples2.cpp
Microsoft.MixedReality.Toolkit.Demos.Gltf.cpp
UnityEngine.SpatialTracking.cpp
UnityEngine.Physics2DModule.cpp
Microsoft.MixedReality.Toolkit.Services.CameraSystem.cpp
Microsoft.MixedReality.Toolkit.Services.InputSystem_CodeGen.c
UnityEngine.SharedInternalsModule.cpp
UnityEngine.ParticleSystemModule.cpp
UnityEngine.InputLegacyModule.cpp
Microsoft.MixedReality.Toolkit.Extensions.Tracking.cpp
UnityEngine.VRModule_CodeGen.c
WindowsRuntimeMetadata_CodeGen.c
Mono.Security.cpp
UnityEngine.AudioModule.cpp
Microsoft.MixedReality.Toolkit.Demos.UX.Interactables.cpp
UnityEngine.SubsystemsModule.cpp
Microsoft.MixedReality.Toolkit.Services.BoundarySystem.cpp
Microsoft.MixedReality.Toolkit.Services.InputSimulation_CodeGen.c
Assembly-CSharp_CodeGen.c
UnityEngine.IMGUIModule_CodeGen.c
deflate.c
UnityEngine.VideoModule.cpp
System.Runtime.WindowsRuntime_CodeGen.c
UnityEngine.TilemapModule.cpp
Microsoft.MixedReality.Toolkit.Providers.WindowsMixedReality_CodeGen.c
UnityEngine.UnityAnalyticsModule.cpp
I18N.Rare_CodeGen.c
Microsoft.MixedReality.Toolkit.Gltf_CodeGen.c
UnityEngine.AndroidJNIModule_CodeGen.c
I18N.CJK_CodeGen.c
inflate.c
Microsoft.MixedReality.Toolkit.Services.SceneSystem_CodeGen.c
UnityEngine.VFXModule.cpp
System.Configuration.cpp
UnityEngine.InputModule.cpp
trees.c
Microsoft.MixedReality.Toolkit.Extensions.SceneTransitionService_CodeGen.c
Microsoft.MixedReality.Toolkit.Services.InputAnimation_CodeGen.c
UnityEngine.JSONSerializeModule.cpp
UnityEngine.PhysicsModule_CodeGen.c
Microsoft.MixedReality.Toolkit.Async_CodeGen.c
Microsoft.MixedReality.Toolkit.Tools.Runtime.cpp
UnityEngine.XRModule_CodeGen.c
Microsoft.MixedReality.Toolkit.Services.DiagnosticsSystem_CodeGen.c
UnityEngine.AssetBundleModule.cpp
UnityEngine.TextCoreModule_CodeGen.c
UnityEngine.UnityWebRequestModule_CodeGen.c
xamarin_getifaddrs.c
System.Core.cpp
System.Core_CodeGen.c
I18N_CodeGen.c
UnityEngine.AnimationModule_CodeGen.c
il2cpp-api.cpp
UnityEngine.UIModule_CodeGen.c
System.Runtime.WindowsRuntime.UI.Xaml.cpp
UnityEngine.ARModule.cpp
I18N.West_CodeGen.c
Microsoft.MixedReality.Toolkit.Demos.InspectorFields.cpp
infback.c
I18N.Other_CodeGen.c
UnityEngine.AIModule.cpp
gzread.c
D:\UnityProject\mr4\mr4\Builds\WSAPlayer\Il2CppOutputProject\IL2CPP\external\zlib\gzread.c(319): warning C4267: ??=??: ???size_t?????????unsigned int??????????????
D:\UnityProject\mr4\mr4\Builds\WSAPlayer\Il2CppOutputProject\IL2CPP\external\zlib\gzread.c(400): warning C4267: ??=??: ???size_t?????????unsigned int??????????????
D:\UnityProject\mr4\mr4\Builds\WSAPlayer\Il2CppOutputProject\IL2CPP\external\zlib\gzread.c(472): warning C4267: ??=??: ???size_t?????????int??????????????
UnityEngine.ParticleSystemModule_CodeGen.c
UnityEngine.DirectorModule.cpp
gzwrite.c
D:\UnityProject\mr4\mr4\Builds\WSAPlayer\Il2CppOutputProject\IL2CPP\external\zlib\gzwrite.c(212): warning C4267: ??=??: ???size_t?????????unsigned int??????????????
D:\UnityProject\mr4\mr4\Builds\WSAPlayer\Il2CppOutputProject\IL2CPP\external\zlib\gzwrite.c(232): warning C4267: ??=??: ???size_t?????????unsigned int??????????????
D:\UnityProject\mr4\mr4\Builds\WSAPlayer\Il2CppOutputProject\IL2CPP\external\zlib\gzwrite.c(371): warning C4267: ??=??: ???size_t?????????int??????????????
Microsoft.MixedReality.Toolkit.Providers.WindowsVoiceInput_CodeGen.c
Microsoft.MixedReality.Toolkit.Providers.XRSDK_CodeGen.c
UnityEngine.TextRenderingModule_CodeGen.c
UnityEngine.SharedInternalsModule_CodeGen.c
Microsoft.MixedReality.Toolkit.Providers.WindowsMixedReality.Shared_CodeGen.c
Microsoft.MixedReality.Toolkit.Extensions.HandPhysics_CodeGen.c
gzlib.c
UnityEngine.AudioModule_CodeGen.c
UnityEngine.Physics2DModule_CodeGen.c
UnityEngine.TerrainModule_CodeGen.c
crc32.c
Microsoft.MixedReality.Toolkit.Providers.XRSDK.WindowsMixedReality_CodeGen.c
inftrees.c
Il2CppCodeRegistration.cpp
inffast.c
UnityEngine.InputLegacyModule_CodeGen.c
UnityEngine.SpatialTracking_CodeGen.c
I18N.MidEast_CodeGen.c
Microsoft.MixedReality.Toolkit.Services.SpatialAwarenessSystem_CodeGen.c
Microsoft.MixedReality.Toolkit.Extensions.Tracking_CodeGen.c
System.Numerics_CodeGen.c
UnityEngine.TilemapModule_CodeGen.c
UnityEngine.ImageConversionModule.cpp
Microsoft.MixedReality.Toolkit.Services.TeleportSystem_CodeGen.c
UnityEngine.VideoModule_CodeGen.c
UnityEngine.SubsystemsModule_CodeGen.c
Microsoft.MixedReality.Toolkit.Demos.UX.Interactables_CodeGen.c
zutil.c
Microsoft.MixedReality.Toolkit.Services.CameraSystem_CodeGen.c
UnityEngine.UnityAnalyticsModule_CodeGen.c
adler32.c
Mono.Security_CodeGen.c
System.Configuration_CodeGen.c
System.Xml.cpp
UnityEngine.GridModule.cpp
UnityEngine.InputModule_CodeGen.c
UnityEngine.VFXModule_CodeGen.c
Microsoft.MixedReality.Toolkit.Demos.Gltf_CodeGen.c
Microsoft.MixedReality.Toolkit.Services.BoundarySystem_CodeGen.c
uncompr.c
compress.c
Il2CppReversePInvokeWrapperTable.cpp
System.Runtime.WindowsRuntime.UI.Xaml_CodeGen.c
Lump_libil2cpp_icalls.cpp
UnityEngine.JSONSerializeModule_CodeGen.c
UnityEngine.AIModule_CodeGen.c
UnityAdsStubs.cpp
UnityEngine.ARModule_CodeGen.c
Microsoft.MixedReality.Toolkit.Demos.InspectorFields_CodeGen.c
UnityEngine.DirectorModule_CodeGen.c
Microsoft.MixedReality.Toolkit.Tools.Runtime_CodeGen.c
krait_signal_handler.c
Lump_libil2cpp_metadata.cpp
UnityEngine.AssetBundleModule_CodeGen.c
UnityEngine.ImageConversionModule_CodeGen.c
Il2CppMetadataRegistration.c
Lump_libil2cpp_utils.cpp
gc.c
netstandard.cpp
System.Globalization.Extensions.cpp
System.Diagnostics.StackTrace.cpp
System.Numerics.Vectors.cpp
System.ObjectModel.cpp
System.Runtime.cpp
System.Runtime.InteropServices.WindowsRuntime.cpp
UnityEngine.GridModule_CodeGen.c
UnityEngine.cpp
System.Xml_CodeGen.c
il2cpp-benchmark-support.cpp
gzclose.c
Lump_libil2cpp_os.cpp
System.Runtime.InteropServices.WindowsRuntime_CodeGen.c
System.Globalization.Extensions_CodeGen.c
System.Diagnostics.StackTrace_CodeGen.c
System.Numerics.Vectors_CodeGen.c
System.ObjectModel_CodeGen.c
Lump_libil2cpp_gc.cpp
Lump_libil2cpp_vm-utils.cpp
System.Runtime_CodeGen.c
netstandard_CodeGen.c
UnityEngine_CodeGen.c
Lump_libil2cpp_mono-runtime.cpp
Lump_libil2cpp_debugger.cpp
il2cpp-runtime-stats.cpp
Lump_libil2cpp_mono.cpp
Lump_libil2cpp_plugin.cpp
Lump_libil2cpp_codegen.cpp
Lump_libil2cpp_vm.cpp
ObjectFiles: 394 of which compiled: 394
        Time Compile: 23581 milliseconds mscorlib5.cpp
        Time Compile: 22242 milliseconds Unity.TextMeshPro3.cpp
        Time Compile: 18887 milliseconds Unity.TextMeshPro2.cpp
        Time Compile: 13134 milliseconds Lump_libil2cpp_os.cpp
        Time Compile: 13099 milliseconds System.cpp
        Time Compile: 12914 milliseconds Lump_libil2cpp_vm.cpp
        Time Compile: 11191 milliseconds Il2CppComCallableWrappers27.cpp
        Time Compile: 11191 milliseconds Il2CppComCallableWrappers22.cpp
        Time Compile: 11156 milliseconds Il2CppComCallableWrappers35.cpp
        Time Compile: 11042 milliseconds Il2CppComCallableWrappers30.cpp
Total compilation time: 206579 milliseconds.

Damn, so it doesn’t work when building from VS, but works when running from command line… never seen that before! And unfortunately the error is just garbled when running from VS.

Could you try configuring automatic dump collection (as outlined here: Collecting User-Mode Dumps - Win32 apps | Microsoft Learn) and seeing if building from VS produces a dump? If it does, could you upload it?

Too fidgety, I did not use the method you said, I re installed the win10 system, now it can be used normally,
I suspect the reason is that my computer has an encryption system, Anyway,thank you !

I’m glad you solved it. It’s possible there was something wrong with your Visual Studio installation.