main
cmd 21 lines 497 Bytes
Raw
1 @setlocal
2 @pushd %~dp0
3
4 @set _C=Debug
5 :parse_args
6 @if /i "%1"=="release" set _C=Release
7 @if not "%1"=="" shift & goto parse_args
8
9 @echo VisualStudio.wixext build %_C%
10
11 :: Build
12 msbuild -Restore -p:Configuration=%_C% -tl -nologo -warnaserror || exit /b
13
14 :: Test
15 dotnet test -c %_C% --no-build test\WixToolsetTest.VisualStudio || exit /b
16
17 :: Pack
18 msbuild -t:Pack -p:Configuration=%_C% -tl -nologo -warnaserror -p:NoBuild=true wixext\WixToolset.VisualStudio.wixext.csproj || exit /b
19
20 @popd
21 @endlocal