@echo off echo Configuring environment... set MSBUILD="%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\msbuild.exe" echo. set outdir=%~dp0build echo Removing release folder... Call :DeleteDir "%outdir%" Call :DeleteDir "ipch" %MSBUILD% inc\Version.proj %MSBUILD% bafunctions\Version.proj %MSBUILD% BalExtensionExt.sln /t:Rebuild /p:Configuration=Release /p:Platform="Mixed Platforms" /p:RunCodeAnalysis=false /p:DefineConstants="TRACE" /p:OutDir="%outdir%\\" /l:FileLogger,Microsoft.Build.Engine;logfile=build.log if %errorlevel% neq 0 ( echo Build failed pause goto :EOF ) copy build\bafunctions.dll Examples /y pushd Examples Call Build popd echo. pause goto :EOF REM ***************************************************************** REM End of Main REM ***************************************************************** REM ***************************************************************** REM Delete/create directory REM ***************************************************************** :DeleteDir rd %1% /q/s 2>nul 1>nul goto :EOF