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