Following is the Error I ran into
Dev stuff on my PC (installed):
- VSCode 1.52.1(user)
- Unity 2020.2.1f1
- .net framework 4.7.1 dev pack
- .net core 3.1 lts
- Visual C++ 2010 (64), 2013(64), 2015(64/86)
Player Settings: - Build Settings: Windows x86_64
- Target API (Windows and Linux): Vulkan, no DirectX
- Scripting backend: IL2CPP
- Api Compatibility level: .net 4.x
- C++ Compiler Config: Release
- Use Incremental GC
- Active Input Handling: Both
building failed and gave three errors as following
Thanks in advance and hope you have a nice day.
--------------------------------------------------1st Error Message in Console--------------------------------------------------
Exception: C++ code builder is unable to build C++ code. In order to build C++ code for Windows Desktop, you must have one of these installed:
Visual Studio 2015 with C++ compilers and Windows 10 SDK (it cannot build C++ code because it is not installed or missing C++ workload component)
Visual Studio 2015 installation is found by looking at “SOFTWARE\Microsoft\VisualStudio\14.0_Config\InstallDir” in the registry
Windows 10 SDK is found by looking at “SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\Windows\v10.0\InstallationFolder” in the registry
Visual Studio 2017 (or newer) with C++ compilers and Windows 10 SDK (it cannot build C++ code because it is not installed or missing C++ workload component)
Visual Studio 2017 (or newer) installation is found using Microsoft.VisualStudio.Setup.Configuration COM APIs
Windows 10 SDK is found by looking at “SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\Windows\v10.0\InstallationFolder” in the registry
UnityEditorInternal.Runner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) (at <1e441e8684a14fe4b8f8a926d91afc3a>:0)
UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action1[T] setupStartInfo) (at <1e441e8684a14fe4b8f8a926d91afc3a>:0) UnityEditorInternal.IL2CPPBuilder.RunIl2CppWithArguments (System.Collections.Generic.List
1[T] arguments, System.Action1[T] setupStartInfo, System.String generatedCppOutputDirectory) (at <1e441e8684a14fe4b8f8a926d91afc3a>:0) UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp (UnityEditor.Il2Cpp.Il2CppBuildPipelineData data, System.String outputDirectory, System.Boolean platformSupportsManagedDebugging) (at <1e441e8684a14fe4b8f8a926d91afc3a>:0) UnityEditorInternal.IL2CPPBuilder.Run () (at <1e441e8684a14fe4b8f8a926d91afc3a>:0) UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String stagingAreaData, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, System.Action
1[T] modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry) (at <1e441e8684a14fe4b8f8a926d91afc3a>:0)
DesktopStandalonePostProcessor.RunIL2CPP (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditorInternal.IIl2CppPlatformProvider il2cppPlatformProvider, System.Collections.Generic.List1[T] cppPlugins) (at <1e441e8684a14fe4b8f8a926d91afc3a>:0) DesktopStandalonePostProcessor.SetupStagingArea (UnityEditor.Modules.BuildPostProcessArgs args, System.Collections.Generic.HashSet
1[T] filesToNotOverwrite) (at <1e441e8684a14fe4b8f8a926d91afc3a>:0)
DesktopStandalonePostProcessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at <1e441e8684a14fe4b8f8a926d91afc3a>:0)
Rethrow as BuildFailedException: Exception of type ‘UnityEditor.Build.BuildFailedException’ was thrown.
DesktopStandalonePostProcessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at <1e441e8684a14fe4b8f8a926d91afc3a>:0)
UnityEditor.Modules.DefaultBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <1e441e8684a14fe4b8f8a926d91afc3a>:0)
UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.String installPath, System.String companyName, System.String productName, System.Int32 width, System.Int32 height, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at <1e441e8684a14fe4b8f8a926d91afc3a>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
--------------------------------------------------2nd Error Message in Console--------------------------------------------------
Build completed with a result of ‘Failed’ in 162 seconds (162302 ms)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
--------------------------------------------------3rd Error Message in Console--------------------------------------------------
UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors
at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002ca] in <1e441e8684a14fe4b8f8a926d91afc3a>:0
at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in <1e441e8684a14fe4b8f8a926d91afc3a>:0
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)