summaryrefslogtreecommitdiff
path: root/src/ext/UI/ui.cmd
diff options
context:
space:
mode:
Diffstat (limited to 'src/ext/UI/ui.cmd')
-rw-r--r--src/ext/UI/ui.cmd18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/ext/UI/ui.cmd b/src/ext/UI/ui.cmd
index d62870d4..3823f45a 100644
--- a/src/ext/UI/ui.cmd
+++ b/src/ext/UI/ui.cmd
@@ -4,18 +4,34 @@
4@set _C=Debug 4@set _C=Debug
5:parse_args 5:parse_args
6@if /i "%1"=="release" set _C=Release 6@if /i "%1"=="release" set _C=Release
7@if /i "%1"=="inc" set _INC=1
8@if /i "%1"=="clean" set _CLEAN=1
7@if not "%1"=="" shift & goto parse_args 9@if not "%1"=="" shift & goto parse_args
8 10
11:: Clean
12
13@if "%_INC%"=="" call :clean
14@if NOT "%_CLEAN%"=="" goto :end
15
9@echo UI.wixext build %_C% 16@echo UI.wixext build %_C%
10 17
11:: Build 18:: Build
12msbuild -Restore -p:Configuration=%_C% || exit /b 19msbuild -Restore -p:Configuration=%_C% || exit /b
13 20
14:: Test 21:: Test
15dotnet test -c %_C% --no-build test\WixToolsetTest.UI || exit /b 22:: dotnet test -c %_C% --no-build test\WixToolsetTest.UI || exit /b
16 23
17:: Pack 24:: Pack
18msbuild -t:Pack -p:Configuration=%_C% -p:NoBuild=true wixext\WixToolset.UI.wixext.csproj || exit /b 25msbuild -t:Pack -p:Configuration=%_C% -p:NoBuild=true wixext\WixToolset.UI.wixext.csproj || exit /b
19 26
27@goto :end
28
29:clean
30@rd /s/q "..\..\..\build\UI.wixext" 2> nul
31@del "..\..\..\build\artifacts\WixToolset.UI.wixext.*.nupkg" 2> nul
32@rd /s/q "%USERPROFILE%\.nuget\packages\wixtoolset.ui.wixext" 2> nul
33@exit /b
34
35:end
20@popd 36@popd
21@endlocal 37@endlocal