明永成

导航

 


@echo off
@REM  ----------------------------------------------------------------------------
@REM  Build bat file
@REM
@REM  This batch file builds the Testsoluction and tools.
@REM  By default, it builds a Debug build.
@REM 
@REM  Optional arguments for this batch file:
@REM    1 - Build type. Defaults to Debug
@REM  ----------------------------------------------------------------------------

echo.
echo =========================================================
echo      BuildLibrary  Script    By Rob Xie.   
echo      Builds Test Library                   
echo =========================================================
echo.

set msBuildDir=%WINDIR%\Microsoft.NET\Framework\v2.0.50727
 set solutionDir="."
 set buildType=Debug
@rem set buildType=Release
set returnErrorCode=true
set pause=true

del output /f /s /q
rd  output /s /q

echo.
echo =========================================================
echo      Finished delete old files and folders
echo      Starting Building....
echo =========================================================
echo.


call %msBuildDir%\msbuild TestSolution.sln /t:Rebuild /p:Configuration=%buildType%

if %pause%==true PAUSE

popd
set pause=
set solutionDir=
set buildType=
set returnErrorCode=
set prompt=%savedPrompt%
set savedPrompt=

echo on

posted on 2011-07-07 15:17  明永成  阅读(230)  评论(0编辑  收藏  举报