From 957a4003715424143a5db2ae32db3aa09f46a695 Mon Sep 17 00:00:00 2001 From: Daniel Grunwald Date: Mon, 21 Mar 2022 20:54:52 +0100 Subject: [PATCH] Use VS2022 when building with the .bat files --- clean.bat | 4 ++-- debugbuild.bat | 4 ++-- releasebuild.bat | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/clean.bat b/clean.bat index b19f16be73..9c27992a8a 100644 --- a/clean.bat +++ b/clean.bat @@ -1,12 +1,12 @@ @setlocal enabledelayedexpansion @set MSBUILD= -@for /D %%M in ("%ProgramFiles(x86)%\Microsoft Visual Studio\2019"\*) do ( +@for /D %%M in ("%ProgramFiles%\Microsoft Visual Studio\2022"\*) do ( @if exist "%%M\MSBuild\Current\Bin\MSBuild.exe" ( @set "MSBUILD=%%M\MSBuild\Current\Bin\MSBuild.exe" ) ) @if "%MSBUILD%" == "" ( - @echo Could not find VS2019 MSBuild + @echo Could not find VS2022 MSBuild @exit /b 1 ) "%MSBUILD%" /m ILSpy.sln /t:Clean /p:Configuration=Debug "/p:Platform=Any CPU" || pause diff --git a/debugbuild.bat b/debugbuild.bat index fdce6272cc..2fa964d7e0 100644 --- a/debugbuild.bat +++ b/debugbuild.bat @@ -1,12 +1,12 @@ @setlocal enabledelayedexpansion @set MSBUILD= -@for /D %%M in ("%ProgramFiles(x86)%\Microsoft Visual Studio\2019"\*) do @( +@for /D %%M in ("%ProgramFiles%\Microsoft Visual Studio\2022"\*) do @( @if exist "%%M\MSBuild\Current\Bin\MSBuild.exe" ( @set "MSBUILD=%%M\MSBuild\Current\Bin\MSBuild.exe" ) ) @if "%MSBUILD%" == "" ( - @echo Could not find VS2019 MSBuild + @echo Could not find VS2022 MSBuild @exit /b 1 ) @nuget restore ILSpy.sln || (pause && exit /b 1) diff --git a/releasebuild.bat b/releasebuild.bat index d8cc7595b1..084e88a0d5 100644 --- a/releasebuild.bat +++ b/releasebuild.bat @@ -1,12 +1,12 @@ @setlocal enabledelayedexpansion @set MSBUILD= -@for /D %%M in ("%ProgramFiles(x86)%\Microsoft Visual Studio\2019"\*) do @( +@for /D %%M in ("%ProgramFiles%\Microsoft Visual Studio\2022"\*) do @( @if exist "%%M\MSBuild\Current\Bin\MSBuild.exe" ( @set "MSBUILD=%%M\MSBuild\Current\Bin\MSBuild.exe" ) ) @if "%MSBUILD%" == "" ( - @echo Could not find VS2019 MSBuild + @echo Could not find VS2022 MSBuild @exit /b 1 ) @nuget restore ILSpy.sln || (pause && exit /b 1)