mirror of https://github.com/icsharpcode/ILSpy.git
3 changed files with 47 additions and 16 deletions
@ -1,7 +1,16 @@
@@ -1,7 +1,16 @@
|
||||
@if not exist "NRefactory\NRefactory.sln" ( |
||||
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 |
||||
@IF %ERRORLEVEL% NEQ 0 PAUSE |
||||
%windir%\microsoft.net\framework\v4.0.30319\msbuild /m ILSpy.sln /t:clean "/p:Platform=Any CPU" /p:Configuration=Release |
||||
@IF %ERRORLEVEL% NEQ 0 PAUSE |
||||
@setlocal enabledelayedexpansion |
||||
set MSBUILD= |
||||
@for /D %%M in ("%ProgramFiles(x86)%\Microsoft Visual Studio\2017"\*) do ( |
||||
@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 |
||||
|
@ -1,9 +1,20 @@
@@ -1,9 +1,20 @@
|
||||
@if not exist "NRefactory\NRefactory.sln" ( |
||||
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" |
||||
@IF %ERRORLEVEL% NEQ 0 GOTO err |
||||
@exit /B 0 |
||||
:err |
||||
@PAUSE |
||||
@exit /B 1 |
||||
@setlocal enabledelayedexpansion |
||||
set MSBUILD= |
||||
@for /D %%M in ("%ProgramFiles(x86)%\Microsoft Visual Studio\2017"\*) do ( |
||||
@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 /p:Configuration=Debug "/p:Platform=Any CPU" |
||||
@IF %ERRORLEVEL% NEQ 0 ( |
||||
@pause |
||||
@exit /b 1 |
||||
) |
||||
@exit /b 0 |
||||
|
@ -1,9 +1,20 @@
@@ -1,9 +1,20 @@
|
||||
@if not exist "NRefactory\NRefactory.sln" ( |
||||
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" |
||||
@IF %ERRORLEVEL% NEQ 0 GOTO err |
||||
@exit /B 0 |
||||
:err |
||||
@PAUSE |
||||
@exit /B 1 |
||||
@setlocal enabledelayedexpansion |
||||
set MSBUILD= |
||||
@for /D %%M in ("%ProgramFiles(x86)%\Microsoft Visual Studio\2017"\*) do ( |
||||
@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 /p:Configuration=Release "/p:Platform=Any CPU" |
||||
@IF %ERRORLEVEL% NEQ 0 ( |
||||
@pause |
||||
@exit /b 1 |
||||
) |
||||
@exit /b 0 |
||||
|
Loading…
Reference in new issue