Windows build scripts in Scripts/Windows currently do not work when executed by double-clicking on them. MSBuild location is also tied to a specific version of VS (Community).
Changelist
Added vswhere.exe to locate MSBuild executable
Added common script to generate a vs project
Added common script to build a vs project (using vswhere.exe)
Updated GenerateVSX.bat scripts to use Common/GenerateVSProject.bat
Updated BuildWindow*.bat to use Common/BuildWindowsTarget.bat
Renamed GenerateVS.bat to GenerateVS17.bat for consistency
Additional context
Tested changes by running:
✅ GenerateVS17.bat
✅ GenerateVS19.bat
✅ GenerateVS22.bat
And building the runtime and editor using:
✅ BuildWindows.bat
✅ BuildWindows-Editor.bat
Test machine info:
Processor AMD Ryzen 9 3900X 12-Core Processor 3.80 GHz
Installed RAM 64.0 GB
Edition Windows 11 Pro
Version 23H2
OS build 22631.2792
Experience Windows Feature Experience Pack 1000.22681.1000.0
MSBuild 17.8.3+195e7f5a3 for .NET Framework
Describe the issue (if no issue has been made)
Windows build scripts in
Scripts/Windows
currently do not work when executed by double-clicking on them.MSBuild
location is also tied to a specific version of VS (Community).Changelist
Additional context
Tested changes by running: ✅
GenerateVS17.bat
✅GenerateVS19.bat
✅GenerateVS22.bat
And building the runtime and editor using: ✅BuildWindows.bat
✅BuildWindows-Editor.bat
Test machine info:
vswhere.exe
version: https://github.com/microsoft/vswhere/releases/tag/3.1.7