diff options
Diffstat (limited to 'src/ext/UI/ui.cmd')
-rw-r--r-- | src/ext/UI/ui.cmd | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/ext/UI/ui.cmd b/src/ext/UI/ui.cmd new file mode 100644 index 00000000..1b5a3a6c --- /dev/null +++ b/src/ext/UI/ui.cmd | |||
@@ -0,0 +1,25 @@ | |||
1 | @setlocal | ||
2 | @pushd %~dp0 | ||
3 | |||
4 | @set _C=Debug | ||
5 | :parse_args | ||
6 | @if /i "%1"=="release" set _C=Release& shift | ||
7 | @if not "%1"=="" shift & goto parse_args | ||
8 | |||
9 | @echo Building ext\UI %_C% | ||
10 | |||
11 | :: Restore | ||
12 | @REM nuget restore || exit /b | ||
13 | msbuild -t:Restore -p:RestorePackagesConfig=true -p:Configuration=%_C% || exit /b | ||
14 | |||
15 | :: Build | ||
16 | msbuild -t:Build -p:Configuration=%_C% test\WixToolsetTest.UI\WixToolsetTest.UI.csproj || exit /b | ||
17 | |||
18 | :: Test | ||
19 | dotnet test -c %_C% --no-build test\WixToolsetTest.UI || exit /b | ||
20 | |||
21 | :: Pack | ||
22 | msbuild -t:Pack -p:Configuration=%_C% wixext\WixToolset.UI.wixext.csproj || exit /b | ||
23 | |||
24 | @popd | ||
25 | @endlocal | ||