aboutsummaryrefslogtreecommitdiff
path: root/build/BuildAll.bat
diff options
context:
space:
mode:
authorcsharptest <roger@csharptest.net>2010-12-15 20:59:36 -0600
committercsharptest <roger@csharptest.net>2010-12-15 20:59:36 -0600
commit7691473a71a15b75d7e7317af7a9db60365f30df (patch)
treebb439b33ccde85b5ac3b38ce460c4f6ee1a27920 /build/BuildAll.bat
parent30d3fa320573ae7be306b97cccb52c1d281d3d03 (diff)
downloadprotobuf-7691473a71a15b75d7e7317af7a9db60365f30df.tar.gz
protobuf-7691473a71a15b75d7e7317af7a9db60365f30df.tar.bz2
protobuf-7691473a71a15b75d7e7317af7a9db60365f30df.zip
Completion of 3.5 build integration and Lite runtime build changes.
Diffstat (limited to 'build/BuildAll.bat')
-rw-r--r--build/BuildAll.bat42
1 files changed, 38 insertions, 4 deletions
diff --git a/build/BuildAll.bat b/build/BuildAll.bat
index 9e027748..984fb791 100644
--- a/build/BuildAll.bat
+++ b/build/BuildAll.bat
@@ -1,8 +1,42 @@
@ECHO OFF
-%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild build.csproj /m /t:Build /p:BuildConfiguration=Debug /p:Platform="Any CPU"
-IF ERRORLEVEL 1 GOTO END
-%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild build.csproj /m /t:Build /p:BuildConfiguration=Debug_Silverlight2 /p:Platform="Any CPU"
+SET PREV_WORKING_DIR=%CD%
+CD %~dp0
+
+REM -- 3.5 Debug build, ensure this continues to work
+%WINDIR%\Microsoft.NET\Framework\v3.5\MSBuild.exe build.csproj /t:Rebuild /p:BuildConfiguration=Debug /p:Platform="Any CPU" /p:BuildTools=3.5 /toolsversion:3.5"
+IF ERRORLEVEL 1 GOTO ERROR
+
+REM -- 4.0 Debug build
+%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild build.csproj /m /t:Rebuild /p:BuildConfiguration=Debug /p:Platform="Any CPU"
+IF ERRORLEVEL 1 GOTO ERROR
+
+REM -- 4.0 Release build
+%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild build.csproj /m /t:Rebuild /p:BuildConfiguration=Release /p:Platform="Any CPU"
+IF ERRORLEVEL 1 GOTO ERROR
+
+IF EXIST "%ProgramFiles%\MSBuild\Microsoft\Silverlight\v2.0\Microsoft.Silverlight.CSharp.targets" GOTO SILVERLIGHT
+IF EXIST "%ProgramFiles(x86)%\MSBuild\Microsoft\Silverlight\v2.0\Microsoft.Silverlight.CSharp.targets" GOTO SILVERLIGHT
+
+ECHO Unable to locate %ProgramFiles(x86)%\MSBuild\Microsoft\Silverlight\v2.0
+GOTO ERROR
+
+:SILVERLIGHT
+
+REM -- 4.0 Debug_Silverlight2 build
+%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild build.csproj /m /t:Rebuild /p:BuildConfiguration=Debug_Silverlight2 /p:Platform="Any CPU"
+IF ERRORLEVEL 1 GOTO ERROR
+
+REM -- 4.0 Release_Silverlight2 build
+%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild build.csproj /m /t:Rebuild /p:BuildConfiguration=Release_Silverlight2 /p:Platform="Any CPU"
+IF ERRORLEVEL 1 GOTO ERROR
+
+GOTO END
+
+:ERROR
+CD %PREV_WORKING_DIR%
+PAUSE
:END
-PAUSE \ No newline at end of file
+CD %PREV_WORKING_DIR%
+SET PREV_WORKING_DIR= \ No newline at end of file