Advertisement
mayvazyan

Automated Build Script (MSBuild & SVN)

Sep 18th, 2011
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.63 KB | None | 0 0
  1. @echo off
  2.  
  3. set MSBuildFile=BUILD_FILE_NAME_GOES_HERE
  4. set MSBuildArgs=/target:TARGET_GOES_HERE /property:Configuration=Release
  5. set MSBuildPath=%windir%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe
  6.  
  7. echo Trying to update source code by using TortoiseProc (a part of the TortoiseSVN)
  8. 2>NUL TortoiseProc /command:update /path:. /closeonend:4
  9.  
  10. IF NOT EXIST %MSBuildPath% GOTO NOTINSTALLED
  11.  
  12. echo Executing MSBuild
  13. %MSBuildPath% %MSBuildFile% %MSBuildArgs%
  14. GOTO END
  15.  
  16. :NOTINSTALLED
  17. 1>&2 echo **ERROR** MSBuild wasn't found at the following location %MSBuildPath%. Please install corresponding version of the .NET Framework  
  18.  
  19. :END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement