diff options
Diffstat (limited to 'src/ext/Util/util.cmd')
-rw-r--r-- | src/ext/Util/util.cmd | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/src/ext/Util/util.cmd b/src/ext/Util/util.cmd index 0ae8851d..aad9c65c 100644 --- a/src/ext/Util/util.cmd +++ b/src/ext/Util/util.cmd | |||
@@ -2,20 +2,43 @@ | |||
2 | @pushd %~dp0 | 2 | @pushd %~dp0 |
3 | 3 | ||
4 | @set _C=Debug | 4 | @set _C=Debug |
5 | @set _L=%~dp0..\..\..\build\logs | ||
6 | |||
5 | :parse_args | 7 | :parse_args |
6 | @if /i "%1"=="release" set _C=Release | 8 | @if /i "%1"=="release" set _C=Release |
9 | @if /i "%1"=="inc" set _INC=1 | ||
10 | @if /i "%1"=="clean" set _CLEAN=1 | ||
7 | @if not "%1"=="" shift & goto parse_args | 11 | @if not "%1"=="" shift & goto parse_args |
8 | 12 | ||
13 | @set _B=%~dp0..\..\..\build\Util.wixext\%_C% | ||
14 | |||
15 | :: Clean | ||
16 | |||
17 | @if "%_INC%"=="" call :clean | ||
18 | @if NOT "%_CLEAN%"=="" goto :end | ||
19 | |||
9 | @echo Building ext\Util %_C% using %_N% | 20 | @echo Building ext\Util %_C% using %_N% |
10 | 21 | ||
11 | :: Build | 22 | :: Build |
12 | msbuild -Restore -p:Configuration=%_C% || exit /b | 23 | msbuild -Restore -p:Configuration=%_C% || exit /b |
13 | 24 | ||
14 | :: Test | 25 | :: Test |
15 | dotnet test -c %_C% --no-build test\WixToolsetTest.Util || exit /b | 26 | dotnet test ^ |
27 | %_B%\net6.0\WixToolsetTest.Util.dll ^ | ||
28 | --nologo -l "trx;LogFileName=%_L%\TestResults\util.wixext.trx" || exit /b | ||
16 | 29 | ||
17 | :: Pack | 30 | :: Pack |
18 | msbuild -t:Pack -p:Configuration=%_C% -p:NoBuild=true wixext\WixToolset.Util.wixext.csproj || exit /b | 31 | msbuild -t:Pack -p:Configuration=%_C% -p:NoBuild=true wixext\WixToolset.Util.wixext.csproj || exit /b |
19 | 32 | ||
33 | @goto :end | ||
34 | |||
35 | :clean | ||
36 | @rd /s/q "..\..\build\Util.wixext" 2> nul | ||
37 | @del "..\..\build\artifacts\WixToolset.Util.wixext.*.nupkg" 2> nul | ||
38 | @del "%_L%\TestResults\util.wixext.trx" 2> nul | ||
39 | @rd /s/q "%USERPROFILE%\.nuget\packages\wixtoolset.util.wixext" 2> nul | ||
40 | @exit /b | ||
41 | |||
42 | :end | ||
20 | @popd | 43 | @popd |
21 | @endlocal | 44 | @endlocal |