TheCherno / Hazel

Hazel Engine
Apache License 2.0
11.64k stars 1.5k forks source link

Hazel failed to build with "error MSB4126: The specified solution configuration "Release|arm64" is invalid." with MSVC on windows #544

Closed YangYang129 closed 2 years ago

YangYang129 commented 2 years ago

Hazel failed to build with "error MSB4126: The specified solution configuration "Release|arm64" is invalid" with MSVC on windows. It can reproduces on version https://github.com/TheCherno/Hazel/commit/f627b9c90923382f735350cd3060892bbd4b1e75. Could you please help look at this issue? Thank you very much

Environment Compiler version: VS2019 (16.11.9) Operating system: Windows server 2019

Steps to reproduce:

  1. open VS2019 x64 tools command
  2. git clone https://github.com/TheCherno/Hazel F:\gitP\TheCherno/Hazel
  3. cd F:\gitP\TheCherno/Hazel
  4. git submodule update --init --recursive
  5. "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\VsDevCmd.bat" -host_arch=amd64 -arch=arm64
  6. cd scripts
  7. Setup.bat
  8. cd F:\gitP\TheCherno\Hazel
  9. msbuild /m /p:Platform=arm64 /p:Configuration=Release Hazel.sln /t:Rebuild

Build.log: build (2).log

Error info: F:\gitP\TheCherno\Hazel\Hazel.sln.metaproj : error MSB4126: The specified solution configuration "Release|arm64" is invalid. Please specify a valid solution configuration using the Configuration and Platform properties (e.g. MSBuild.exe Solution.sln /p:Configuration=Debug /p:Platform="Any CPU") or leave those properties blank to use the default solution configuration. [F:\gitP\TheCherno\Hazel\Hazel.sln]