Browse Source

Update .bat files to use VS2017.

pull/728/merge
Daniel Grunwald 9 years ago
parent
commit
53b2a70af2
  1. 17
      clean.bat
  2. 23
      debugbuild.bat
  3. 23
      releasebuild.bat

17
clean.bat

@ -1,7 +1,16 @@
@if not exist "NRefactory\NRefactory.sln" ( @if not exist "NRefactory\NRefactory.sln" (
git submodule update --init || exit /b 1 git submodule update --init || exit /b 1
) )
%windir%\microsoft.net\framework\v4.0.30319\msbuild /m ILSpy.sln /t:clean "/p:Platform=Any CPU" /p:Configuration=Debug @setlocal enabledelayedexpansion
@IF %ERRORLEVEL% NEQ 0 PAUSE set MSBUILD=
%windir%\microsoft.net\framework\v4.0.30319\msbuild /m ILSpy.sln /t:clean "/p:Platform=Any CPU" /p:Configuration=Release @for /D %%M in ("%ProgramFiles(x86)%\Microsoft Visual Studio\2017"\*) do (
@IF %ERRORLEVEL% NEQ 0 PAUSE @if exist "%%M\MSBuild\15.0\Bin\MSBuild.exe" (
@set "MSBUILD=%%M\MSBuild\15.0\Bin\MSBuild.exe"
)
)
@if "%MSBUILD%" == "" (
@echo Could not find VS2017 MSBuild
@exit /b 1
)
"%MSBUILD%" /m ILSpy.sln /t:Clean /p:Configuration=Debug "/p:Platform=Any CPU" || pause
"%MSBUILD%" /m ILSpy.sln /t:Clean /p:Configuration=Release "/p:Platform=Any CPU" || pause

23
debugbuild.bat

@ -1,9 +1,20 @@
@if not exist "NRefactory\NRefactory.sln" ( @if not exist "NRefactory\NRefactory.sln" (
git submodule update --init || exit /b 1 git submodule update --init || exit /b 1
) )
"%ProgramFiles(x86)%\MSBuild\14.0\Bin\msbuild.exe" /m ILSpy.sln /p:Configuration=Debug "/p:Platform=Any CPU" @setlocal enabledelayedexpansion
@IF %ERRORLEVEL% NEQ 0 GOTO err set MSBUILD=
@exit /B 0 @for /D %%M in ("%ProgramFiles(x86)%\Microsoft Visual Studio\2017"\*) do (
:err @if exist "%%M\MSBuild\15.0\Bin\MSBuild.exe" (
@PAUSE @set "MSBUILD=%%M\MSBuild\15.0\Bin\MSBuild.exe"
@exit /B 1 )
)
@if "%MSBUILD%" == "" (
@echo Could not find VS2017 MSBuild
@exit /b 1
)
"%MSBUILD%" /m ILSpy.sln /p:Configuration=Debug "/p:Platform=Any CPU"
@IF %ERRORLEVEL% NEQ 0 (
@pause
@exit /b 1
)
@exit /b 0

23
releasebuild.bat

@ -1,9 +1,20 @@
@if not exist "NRefactory\NRefactory.sln" ( @if not exist "NRefactory\NRefactory.sln" (
git submodule update --init || exit /b 1 git submodule update --init || exit /b 1
) )
"%ProgramFiles(x86)%\MSBuild\14.0\Bin\msbuild.exe" /m ILSpy.sln /p:Configuration=Release "/p:Platform=Any CPU" @setlocal enabledelayedexpansion
@IF %ERRORLEVEL% NEQ 0 GOTO err set MSBUILD=
@exit /B 0 @for /D %%M in ("%ProgramFiles(x86)%\Microsoft Visual Studio\2017"\*) do (
:err @if exist "%%M\MSBuild\15.0\Bin\MSBuild.exe" (
@PAUSE @set "MSBUILD=%%M\MSBuild\15.0\Bin\MSBuild.exe"
@exit /B 1 )
)
@if "%MSBUILD%" == "" (
@echo Could not find VS2017 MSBuild
@exit /b 1
)
"%MSBUILD%" /m ILSpy.sln /p:Configuration=Release "/p:Platform=Any CPU"
@IF %ERRORLEVEL% NEQ 0 (
@pause
@exit /b 1
)
@exit /b 0

Loading…
Cancel
Save