/debugbuild.bat

http://github.com/icsharpcode/ILSpy · Batch · 13 lines · 13 code · 0 blank · 0 comment · 5 complexity · 7050b5de69a694ad530ef89c1cb15b3f MD5 · raw file

  1. @setlocal enabledelayedexpansion
  2. @set MSBUILD=
  3. @for /D %%M in ("%ProgramFiles(x86)%\Microsoft Visual Studio\2019"\*) do @(
  4. @if exist "%%M\MSBuild\Current\Bin\MSBuild.exe" (
  5. @set "MSBUILD=%%M\MSBuild\Current\Bin\MSBuild.exe"
  6. )
  7. )
  8. @if "%MSBUILD%" == "" (
  9. @echo Could not find VS2019 MSBuild
  10. @exit /b 1
  11. )
  12. @nuget restore ILSpy.sln || (pause && exit /b 1)
  13. "%MSBUILD%" ILSpy.sln /p:Configuration=Debug "/p:Platform=Any CPU" || (pause && exit /b 1)