diff options
author | Rob Mensching <rob@firegiant.com> | 2022-10-02 19:37:55 -0700 |
---|---|---|
committer | Rob Mensching <rob@firegiant.com> | 2022-10-04 10:44:49 -0700 |
commit | 5c509f5611a45bdf9d252b88605537bd28f24a35 (patch) | |
tree | f2ac4c1509fe69f6489c56f257b59f4e346a51c7 /src/libs/libs.cmd | |
parent | e901e04cfb8f1b759903f41b5c8f2f91e3f877aa (diff) | |
download | wix-5c509f5611a45bdf9d252b88605537bd28f24a35.tar.gz wix-5c509f5611a45bdf9d252b88605537bd28f24a35.tar.bz2 wix-5c509f5611a45bdf9d252b88605537bd28f24a35.zip |
Move WixVersion to new WixToolset.Versioning package in libs segment
WixVersion is already used by the Core toolset but could also be
useful for bootstrapper applications parsing bundle versions. The
WixToolset.Data assembly contains a significant amount of data that
bloats its size that bootstrapper applications would never need.
Extracting WixVersion to its own assembly makes it much more
useable.
Fixes 6943
Diffstat (limited to 'src/libs/libs.cmd')
-rw-r--r-- | src/libs/libs.cmd | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/libs/libs.cmd b/src/libs/libs.cmd index e3107fbc..e9402701 100644 --- a/src/libs/libs.cmd +++ b/src/libs/libs.cmd | |||
@@ -3,18 +3,42 @@ | |||
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 | ||
10 | @set _B=%~dp0..\..\build\libs\%_C% | 13 | @set _B=%~dp0..\..\build\libs\%_C% |
11 | 14 | ||
15 | :: Clean | ||
16 | |||
17 | @if "%_INC%"=="" call :clean | ||
18 | @if NOT "%_CLEAN%"=="" goto :end | ||
19 | |||
12 | @echo Building libs %_C% | 20 | @echo Building libs %_C% |
13 | 21 | ||
14 | msbuild -Restore libs_t.proj -p:Configuration=%_C% -nologo -m -warnaserror -bl:%_L%\libs_build.binlog || exit /b | 22 | msbuild -Restore libs_t.proj -p:Configuration=%_C% -nologo -m -warnaserror -bl:%_L%\libs_build.binlog || exit /b |
15 | 23 | ||
24 | dotnet test %_B%\net6.0\WixToolsetTest.Versioning.dll --nologo -l "trx;LogFileName=%_L%\TestResults\WixToolsetTest.Versioning.trx" || exit /b | ||
16 | dotnet test %_B%\x86\DUtilUnitTest.dll --nologo -l "trx;LogFileName=%_L%\TestResults\DutilUnitTest32.trx" || exit /b | 25 | dotnet test %_B%\x86\DUtilUnitTest.dll --nologo -l "trx;LogFileName=%_L%\TestResults\DutilUnitTest32.trx" || exit /b |
17 | dotnet test %_B%\x64\DUtilUnitTest.dll --nologo -l "trx;LogFileName=%_L%\TestResults\DutilUnitTest64.trx" || exit /b | 26 | dotnet test %_B%\x64\DUtilUnitTest.dll --nologo -l "trx;LogFileName=%_L%\TestResults\DutilUnitTest64.trx" || exit /b |
18 | 27 | ||
28 | @goto :end | ||
29 | |||
30 | :clean | ||
31 | @rd /s/q "..\..\build\libs" 2> nul | ||
32 | @del "..\..\build\artifacts\WixToolset.DUtil.*.nupkg" 2> nul | ||
33 | @del "..\..\build\artifacts\WixToolset.Versioning.*.nupkg" 2> nul | ||
34 | @del "..\..\build\artifacts\WixToolset.WcaUtil.*.nupkg" 2> nul | ||
35 | @del "%_L%\TestResults\WixToolsetTest.Versioning.trx" 2> nul | ||
36 | @del "%_L%\TestResults\DutilUnitTest*.trx" 2> nul | ||
37 | @rd /s/q "%USERPROFILE%\.nuget\packages\wixtoolset.dutil" 2> nul | ||
38 | @rd /s/q "%USERPROFILE%\.nuget\packages\wixtoolset.versioning" 2> nul | ||
39 | @rd /s/q "%USERPROFILE%\.nuget\packages\wixtoolset.wcautil" 2> nul | ||
40 | @exit /b | ||
41 | |||
42 | :end | ||
19 | @popd | 43 | @popd |
20 | @endlocal | 44 | @endlocal |