BuildAll.bat 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. @ECHO OFF
  2. SET PREV_WORKING_DIR=%CD%
  3. CD %~dp0
  4. REM -- 3.5 Debug build, ensure this continues to work
  5. %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"
  6. IF ERRORLEVEL 1 GOTO ERROR
  7. REM -- 4.0 Debug build
  8. %WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild build.csproj /m /t:Rebuild /p:BuildConfiguration=Debug /p:Platform="Any CPU"
  9. IF ERRORLEVEL 1 GOTO ERROR
  10. REM -- 4.0 Release build
  11. %WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild build.csproj /m /t:Rebuild /p:BuildConfiguration=Release /p:Platform="Any CPU"
  12. IF ERRORLEVEL 1 GOTO ERROR
  13. IF EXIST "%ProgramFiles%\MSBuild\Microsoft\Silverlight\v2.0\Microsoft.Silverlight.CSharp.targets" GOTO SILVERLIGHT
  14. IF EXIST "%ProgramFiles(x86)%\MSBuild\Microsoft\Silverlight\v2.0\Microsoft.Silverlight.CSharp.targets" GOTO SILVERLIGHT
  15. ECHO Unable to locate %ProgramFiles(x86)%\MSBuild\Microsoft\Silverlight\v2.0
  16. GOTO ERROR
  17. :SILVERLIGHT
  18. REM -- 4.0 Debug_Silverlight2 build
  19. %WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild build.csproj /m /t:Rebuild /p:BuildConfiguration=Debug_Silverlight2 /p:Platform="Any CPU"
  20. IF ERRORLEVEL 1 GOTO ERROR
  21. REM -- 4.0 Release_Silverlight2 build
  22. %WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild build.csproj /m /t:Rebuild /p:BuildConfiguration=Release_Silverlight2 /p:Platform="Any CPU"
  23. IF ERRORLEVEL 1 GOTO ERROR
  24. GOTO END
  25. :ERROR
  26. CD %PREV_WORKING_DIR%
  27. PAUSE
  28. :END
  29. CD %PREV_WORKING_DIR%
  30. SET PREV_WORKING_DIR=