@ 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