Browse Source

Use VS2022 when building with the .bat files

pull/2660/head
Daniel Grunwald 3 years ago
parent
commit
957a400371
  1. 4
      clean.bat
  2. 4
      debugbuild.bat
  3. 4
      releasebuild.bat

4
clean.bat

@ -1,12 +1,12 @@ @@ -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

4
debugbuild.bat

@ -1,12 +1,12 @@ @@ -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)

4
releasebuild.bat

@ -1,12 +1,12 @@ @@ -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)

Loading…
Cancel
Save