前言
用Unity build一个VR项目的时候,即使已经安装了相关SDK和通用平台工具了但还是报以下错误:
Build completed with a result of 'Failed' in 8 seconds (8257 ms)
Internal build system error. BuildProgram exited with code 1.
Unity.IL2CPP.Bee.BuildLogic.ToolchainNotFoundException: IL2CPP C++ code builder is unable to build C++ code. In order to build C++ code for UWP, you must have one of these installed:
* Visual Studio 2022 or newer with C++ compilers and Windows 10 (or newer) SDK (recommended)
* Visual Studio 2019 with C++ compilers and Windows 10 (or newer) SDK
* Visual Studio 2017 with C++ compilers and Windows 10 (or newer) SDK
* Visual Studio 2015 with C++ compilers and Windows 10 (or newer) SDK
Visual Studio 2017 (or newer) is detected using `vswhere.exe` as well as VSCOMNTOOLS environment variables.
Visual Studio 2015 is detected by looking at "SOFTWARE\Microsoft\VisualStudio\14.0_Co