Write the code to build the .net solution using a batch file

Niladri.Biswas
Posted by Niladri.Biswas under C# category on | Points: 40 | Views : 1434
@echo off
echo Build AFO 2007 project.
SET SLN_FILE=AFO2003.sln
SET WORKING_PATH=C:\Work\BuildSource
SET SOURCE_PATH=%WORKING_PATH%\MergedSource
SET BUILD_CONFIG=DEBUG
SET LOG_PATH=C:\Work\BuildSource
SET FRAMEWORK_PATH=C:\Windows\Microsoft.NET\Framework\v3.5
pushd %FRAMEWORK_PATH%
MSBuild.exe %SOURCE_PATH%\%SLN_FILE% /t:Rebuild /p:Configuration=%BUILD_CONFIG% /fileLoggerParameters:LogFile=%LOG_PATH%\Build.log;Verbosity=n;Encoding=UTF-8 /fileLoggerParameters1:errorsonly;logfile=%LOG_PATH%\errors.log /fileLoggerParameters2:warningsonly;logfile=%LOG_PATH%\warnings.log /v:diag
echo MSBuild has completed the build for %SOURCE_PATH%\%SLN_FILE%. Verify Log for details.
popd
echo Thanks for using AutoBuild...

Comments or Responses

Login to post response