@setlocal @pushd %~dp0 @set _C=Debug :parse_args @if /i "%1"=="release" set _C=Release @if not "%1"=="" shift & goto parse_args @echo Building dtf %_C% :: dtf nuget restore || exit /b msbuild -t:Build -p:Configuration=%_C% || exit /b msbuild -t:Pack -p:Configuration=%_C% WixToolset.Dtf.Compression || exit /b msbuild -t:Pack -p:Configuration=%_C% WixToolset.Dtf.Compression.Cab || exit /b msbuild -t:Pack -p:Configuration=%_C% WixToolset.Dtf.Compression.Zip || exit /b msbuild -t:Pack -p:Configuration=%_C% WixToolset.Dtf.Resources || exit /b msbuild -t:Pack -p:Configuration=%_C% WixToolset.Dtf.WindowsInstaller || exit /b msbuild -t:Pack -p:Configuration=%_C% WixToolset.Dtf.WindowsInstaller.Linq || exit /b msbuild -t:Pack -p:Configuration=%_C% WixToolset.Dtf.WindowsInstaller.Package || exit /b @popd @endlocal