parent
8aad022bec
commit
ad7b9d114e
9 changed files with 34 additions and 45 deletions
@ -1,8 +0,0 @@ |
|||||||
@echo off |
|
||||||
SET BUILD_TARGET=%~1 |
|
||||||
SET BUILD_CONFIG=%~2 |
|
||||||
|
|
||||||
IF "%BUILD_TARGET%"=="" SET BUILD_TARGET=Rebuild |
|
||||||
IF "%BUILD_CONFIG%"=="" SET BUILD_CONFIG=Debug |
|
||||||
|
|
||||||
CMD.exe /Q /C "CD %~dp0 && %WINDIR%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe /nologo build.csproj /toolsversion:4.0 %3 %4 %5 %6 "/t:%BUILD_TARGET%" "/p:BuildConfiguration=%BUILD_CONFIG%;TargetVersion=NET20" |
|
@ -1,2 +1,8 @@ |
|||||||
@echo off |
@echo off |
||||||
CMD.exe /Q /C "CD %~dp0 && %WINDIR%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe /nologo build.csproj /t:FullBuild /toolsversion:4.0 %1 %2 %3 %4 %5 %6 |
SET BUILD_TARGET=%~1 |
||||||
|
SET BUILD_CONFIG=%~2 |
||||||
|
|
||||||
|
IF "%BUILD_TARGET%"=="" SET BUILD_TARGET=Rebuild |
||||||
|
IF "%BUILD_CONFIG%"=="" SET BUILD_CONFIG=Debug |
||||||
|
|
||||||
|
CMD.exe /Q /C "CD %~dp0 && %WINDIR%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe /nologo build.csproj /t:%BUILD_TARGET% /toolsversion:4.0 "/p:Configuration=%BUILD_CONFIG%" %3 %4 %5 %6 |
||||||
|
@ -1,2 +0,0 @@ |
|||||||
@echo off |
|
||||||
CMD.exe /Q /C "CD %~dp0 && %WINDIR%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe /nologo build.csproj /toolsversion:4.0 /t:Rebuild %1 %2 %3 %4 "/p:BuildConfiguration=Debug_Silverlight;TargetVersion=2" |
|
@ -1,9 +0,0 @@ |
|||||||
@echo off |
|
||||||
PUSHD %~dp0 |
|
||||||
IF EXIST ..\build_output RMDIR /S /Q ..\build_output |
|
||||||
IF EXIST ..\build_temp RMDIR /S /Q ..\build_temp |
|
||||||
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe /nologo build.csproj /toolsversion:4.0 /t:Clean /v:m "/p:BuildConfiguration=Release;TargetVersion=2" |
|
||||||
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe /nologo build.csproj /toolsversion:4.0 /t:Clean /v:m "/p:BuildConfiguration=Debug;TargetVersion=2" |
|
||||||
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe /nologo build.csproj /toolsversion:4.0 /t:Clean /v:m "/p:BuildConfiguration=Release_Silverlight;TargetVersion=2" |
|
||||||
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe /nologo build.csproj /toolsversion:4.0 /t:Clean /v:m "/p:BuildConfiguration=Debug_Silverlight;TargetVersion=2" |
|
||||||
POPD |
|
@ -0,0 +1,20 @@ |
|||||||
|
@echo off |
||||||
|
SET BUILD_VERSION=%~1 |
||||||
|
SET BUILD_TARGET=%~2 |
||||||
|
SET BUILD_CONFIG=%~3 |
||||||
|
|
||||||
|
IF NOT "%BUILD_VERSION%"=="" GOTO RUN |
||||||
|
ECHO. |
||||||
|
ECHO Usage: build.bat platform [target] [config] [msbuild arguments] |
||||||
|
ECHO. |
||||||
|
ECHO - platform: CF20, CF35, NET20, NET35, NET40, PL40, SL20, SL30, or SL40 |
||||||
|
ECHO - [target]: Rebuild, Clean, Build, Test, or Publish |
||||||
|
ECHO - [config]: Debug or Release |
||||||
|
ECHO. |
||||||
|
EXIT /B 1 |
||||||
|
|
||||||
|
:RUN |
||||||
|
IF "%BUILD_TARGET%"=="" SET BUILD_TARGET=Rebuild |
||||||
|
IF "%BUILD_CONFIG%"=="" SET BUILD_CONFIG=Debug |
||||||
|
|
||||||
|
CMD.exe /Q /C "CD %~dp0 && %WINDIR%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe /nologo target.csproj /toolsversion:4.0 %4 %5 %6 "/t:%BUILD_TARGET%" "/p:Configuration=%BUILD_CONFIG%;TargetVersion=%BUILD_VERSION%" |
@ -1,8 +0,0 @@ |
|||||||
@echo off |
|
||||||
SET BUILD_TARGET=%~1 |
|
||||||
SET BUILD_CONFIG=%~2 |
|
||||||
|
|
||||||
IF "%BUILD_TARGET%"=="" SET BUILD_TARGET=Rebuild |
|
||||||
IF "%BUILD_CONFIG%"=="" SET BUILD_CONFIG=Debug |
|
||||||
|
|
||||||
CMD.exe /Q /C "CD %~dp0 && %WINDIR%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe /nologo build.csproj /toolsversion:4.0 %3 %4 %5 %6 "/t:%BUILD_TARGET%" "/p:BuildConfiguration=%BUILD_CONFIG%;TargetVersion=NET35" |
|
@ -1,8 +0,0 @@ |
|||||||
@echo off |
|
||||||
SET BUILD_TARGET=%~1 |
|
||||||
SET BUILD_CONFIG=%~2 |
|
||||||
|
|
||||||
IF "%BUILD_TARGET%"=="" SET BUILD_TARGET=Rebuild |
|
||||||
IF "%BUILD_CONFIG%"=="" SET BUILD_CONFIG=Debug |
|
||||||
|
|
||||||
CMD.exe /Q /C "CD %~dp0 && %WINDIR%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe /nologo build.csproj /toolsversion:4.0 %3 %4 %5 %6 "/t:%BUILD_TARGET%" "/p:BuildConfiguration=%BUILD_CONFIG%;TargetVersion=NET40" |
|
Loading…
Reference in new issue