Skip to content

Commit

Permalink
Use VS2022 when building with the .bat files
Browse files Browse the repository at this point in the history
  • Loading branch information
dgrunwald committed Mar 21, 2022
1 parent c2085cb commit 957a400
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions clean.bat
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions debugbuild.bat
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
4 changes: 2 additions & 2 deletions releasebuild.bat
Original file line number Diff line number Diff line change
@@ -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)
Expand Down

0 comments on commit 957a400

Please sign in to comment.