2012-03-11 21:17:56 +04:00
|
|
|
@echo off
|
|
|
|
pushd %~dp0
|
2013-11-09 04:05:08 +04:00
|
|
|
setlocal
|
2012-03-11 21:17:56 +04:00
|
|
|
|
|
|
|
if exist bin goto build
|
|
|
|
mkdir bin
|
|
|
|
|
|
|
|
:Build
|
2013-11-10 23:58:10 +04:00
|
|
|
|
2014-05-21 03:56:00 +04:00
|
|
|
REM Find the most recent 32bit MSBuild.exe on the system. Require v12.0 (installed with VS2013) or later since .NET 4.0
|
|
|
|
REM is not supported. Also handle x86 operating systems, where %ProgramFiles(x86)% is not defined. Always quote the
|
|
|
|
REM %MSBuild% value when setting the variable and never quote %MSBuild% references.
|
2013-11-10 23:58:10 +04:00
|
|
|
set MSBuild="%ProgramFiles(x86)%\MSBuild\12.0\Bin\MSBuild.exe"
|
|
|
|
if not exist %MSBuild% @set MSBuild="%ProgramFiles%\MSBuild\12.0\Bin\MSBuild.exe"
|
2013-11-09 04:05:08 +04:00
|
|
|
|
2012-03-11 21:17:56 +04:00
|
|
|
if "%1" == "" goto BuildDefaults
|
|
|
|
|
2013-11-09 04:05:08 +04:00
|
|
|
%MSBuild% Runtime.msbuild /m /nr:false /t:%* /p:Platform="Any CPU" /p:Desktop=true /v:M /fl /flp:LogFile=bin\msbuild.log;Verbosity=Normal
|
2012-10-12 01:59:26 +04:00
|
|
|
if %ERRORLEVEL% neq 0 goto BuildFail
|
2012-03-11 21:17:56 +04:00
|
|
|
goto BuildSuccess
|
|
|
|
|
|
|
|
:BuildDefaults
|
2013-11-09 04:05:08 +04:00
|
|
|
%MSBuild% Runtime.msbuild /m /nr:false /p:Platform="Any CPU" /p:Desktop=true /v:M /fl /flp:LogFile=bin\msbuild.log;Verbosity=Normal
|
2012-10-12 01:59:26 +04:00
|
|
|
if %ERRORLEVEL% neq 0 goto BuildFail
|
2012-03-11 21:17:56 +04:00
|
|
|
goto BuildSuccess
|
|
|
|
|
|
|
|
:BuildFail
|
|
|
|
echo.
|
|
|
|
echo *** BUILD FAILED ***
|
|
|
|
goto End
|
|
|
|
|
|
|
|
:BuildSuccess
|
|
|
|
echo.
|
|
|
|
echo **** BUILD SUCCESSFUL ***
|
|
|
|
goto end
|
|
|
|
|
|
|
|
:End
|
|
|
|
popd
|
2013-11-09 01:26:15 +04:00
|
|
|
endlocal
|