mirror of
https://github.com/ckaczor/WixBalExtensionExt.git
synced 2026-01-13 17:23:11 -05:00
45 lines
1.1 KiB
Batchfile
45 lines
1.1 KiB
Batchfile
@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:VisualStudioVersion=12.0 /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
|