Skip to content

Commit

Permalink
Add VS 2022 Pro to build.cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Crowther committed May 23, 2024
1 parent d215113 commit ab1d9da
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions build.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@
setlocal ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION
pushd %~dp0

if "%~1"=="" (
if "%~1"=="" (
call :Usage
goto :EOF
)

IF EXIST "%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\MSBuild.exe" (
IF EXIST "%ProgramFiles%\Microsoft Visual Studio\2022\Professional\MSBuild\Current\Bin\MSBuild.exe" (
set msbuild="%ProgramFiles(x86)%\Microsoft Visual Studio\2022\Professional\MSBuild\Current\Bin\MSBuild.exe"
) ELSE IF EXIST "%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\MSBuild.exe" (
set msbuild="%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\MSBuild.exe"
) ELSE IF EXIST "%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\MSBuild.exe" (
set msbuild="%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\MSBuild.exe"
Expand Down

0 comments on commit ab1d9da

Please sign in to comment.