mirror of
https://github.com/ckaczor/WixBalExtensionExt.git
synced 2026-01-19 01:35:38 -05:00
Initial commit
This commit is contained in:
44
build.bat
Normal file
44
build.bat
Normal file
@@ -0,0 +1,44 @@
|
||||
@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
|
||||
Reference in New Issue
Block a user