mirror of https://github.com/icsharpcode/ILSpy.git
3 changed files with 47 additions and 16 deletions
@ -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 |
||||||
|
@ -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 |
||||||
|
@ -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…
Reference in new issue