main
cmd 24 lines 613 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 DirectX.wixext build %_C%
10
11 :: Restore
12 msbuild -t:Restore -p:Configuration=%_C% -tl -nologo -warnaserror || exit /b
13
14 :: Build
15 msbuild -t:Build -p:Configuration=%_C% -tl -nologo -warnaserror test\WixToolsetTest.DirectX\WixToolsetTest.DirectX.csproj || exit /b
16
17 :: Test
18 dotnet test -c %_C% --no-build test\WixToolsetTest.DirectX || exit /b
19
20 :: Pack
21 msbuild -t:Pack -p:Configuration=%_C% -tl -nologo -warnaserror wixext\WixToolset.DirectX.wixext.csproj || exit /b
22
23 @popd
24 @endlocal