aboutsummaryrefslogtreecommitdiff
path: root/build/Build.bat
diff options
context:
space:
mode:
Diffstat (limited to 'build/Build.bat')
-rw-r--r--build/Build.bat7
1 files changed, 6 insertions, 1 deletions
diff --git a/build/Build.bat b/build/Build.bat
index 9cfce7c7..3269d54b 100644
--- a/build/Build.bat
+++ b/build/Build.bat
@@ -1,5 +1,10 @@
@echo off
+SET BUILD_TARGET=%1
+SET BUILD_CONFIG=%2
-%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild build.csproj /m /t:Build /p:BuildConfiguration=Debug /p:Platform="Any CPU"
+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 build.csproj %3 %4 %5 %6 /t:%BUILD_TARGET% /p:BuildConfiguration=%BUILD_CONFIG% /p:Platform="Any CPU" /p:BuildTools=4.0 /toolsversion:4.0"
pause \ No newline at end of file