build.cmd 901 B

123456789101112131415161718192021222324252627282930313233
  1. @echo off
  2. rem We use the version of MSBuild that is included in .NET 4.0 / 4.5
  3. set MSBUILD_HOME=%WINDIR%\Microsoft.NET\Framework\v4.0.30319
  4. rem MSBuild project file is located in the same directory as the current script
  5. set MSBUILD_PROJECT=%~dp0\build.proj
  6. set MSBUILD_EXE=%MSBUILD_HOME%\msbuild.exe
  7. rem verify whether the version of MSBuild that we need is installed
  8. if not exist %MSBUILD_EXE% goto msbuild_missing
  9. rem launch the build script
  10. call %MSBUILD_HOME%\msbuild.exe %MSBUILD_PROJECT% /verbosity:minimal /nologo
  11. if errorlevel 1 goto msbuild_failure
  12. goto :EOF
  13. :msbuild_missing
  14. echo.
  15. echo Build FAILED.
  16. echo.
  17. echo MSBuild is not available in the following directory:
  18. echo %MSBUILD_HOME%
  19. echo.
  20. echo Please check your local setup.
  21. goto :EOF
  22. :msbuild_failure
  23. echo.
  24. echo Build FAILED.
  25. echo.
  26. echo Please check the MSBuild output for information on the cause.