From 3cb9bbe90e329a3550bb55fda5c620f23fc4eb86 Mon Sep 17 00:00:00 2001 From: Rob Mensching Date: Tue, 14 Feb 2023 23:11:29 -0800 Subject: Update some extensions to take advantage of multitargeting project references --- src/ext/NetFx/netfx.cmd | 28 +++++++++++++++++++--- src/ext/NetFx/wixlib/NetFxExtension_Platform.wxi | 2 +- .../NetFx/wixlib/NetfxBundleExtension_Platform.wxi | 6 ++--- src/ext/NetFx/wixlib/netfx.wixproj | 21 +++++----------- 4 files changed, 35 insertions(+), 22 deletions(-) (limited to 'src/ext/NetFx') 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 @@ @set _C=Debug @set _L=%~dp0..\..\..\build\logs + :parse_args @if /i "%1"=="release" set _C=Release +@if /i "%1"=="inc" set _INC=1 +@if /i "%1"=="clean" set _CLEAN=1 @if not "%1"=="" shift & goto parse_args +@set _B=%~dp0..\..\..\build\NetFx.wixext\%_C% + +:: Clean + +@if "%_INC%"=="" call :clean +@if NOT "%_CLEAN%"=="" goto :end + @echo NetFx.wixext build %_C% :: Restore nuget restore netcoresearch\packages.config || exit /b -msbuild -t:Restore -p:Configuration=%_C% || exit /b :: Build -msbuild -p:Configuration=%_C% -bl:%_L%\netfx_build.binlog || exit /b +msbuild -Restore -p:Configuration=%_C% -bl:%_L%\ext_netfx_build.binlog || exit /b :: Test -dotnet test -c %_C% --no-build test\WixToolsetTest.Netfx || exit /b +dotnet test ^ + %_B%\net6.0\WixToolsetTest.NetFx.dll ^ + --nologo -l "trx;LogFileName=%_L%\TestResults\netfx.wixext.trx" || exit /b :: Pack msbuild -t:Pack -p:Configuration=%_C% -p:NoBuild=true wixext\WixToolset.Netfx.wixext.csproj || exit /b +@goto :end + +:clean +@rd /s/q "..\..\build\NetFx.wixext" 2> nul +@del "..\..\build\artifacts\WixToolset.NetFx.wixext.*.nupkg" 2> nul +@del "%_L%\ext_netfx_build.binlog" 2> nul +@del "%_L%\TestResults\netfx.wixext.trx" 2> nul +@rd /s/q "%USERPROFILE%\.nuget\packages\wixtoolset.netfx.wixext" 2> nul +@exit /b + +:end @popd @endlocal diff --git a/src/ext/NetFx/wixlib/NetFxExtension_Platform.wxi b/src/ext/NetFx/wixlib/NetFxExtension_Platform.wxi index c9c8af02..81746db1 100644 --- a/src/ext/NetFx/wixlib/NetFxExtension_Platform.wxi +++ b/src/ext/NetFx/wixlib/NetFxExtension_Platform.wxi @@ -28,7 +28,7 @@ - + diff --git a/src/ext/NetFx/wixlib/NetfxBundleExtension_Platform.wxi b/src/ext/NetFx/wixlib/NetfxBundleExtension_Platform.wxi index e3300534..bc332efc 100644 --- a/src/ext/NetFx/wixlib/NetfxBundleExtension_Platform.wxi +++ b/src/ext/NetFx/wixlib/NetfxBundleExtension_Platform.wxi @@ -5,10 +5,10 @@ - + - - + + diff --git a/src/ext/NetFx/wixlib/netfx.wixproj b/src/ext/NetFx/wixlib/netfx.wixproj index 1ab72e8e..2bd09d95 100644 --- a/src/ext/NetFx/wixlib/netfx.wixproj +++ b/src/ext/NetFx/wixlib/netfx.wixproj @@ -8,24 +8,15 @@ - - - - - - + + + - - - - - - - - - + + + -- cgit v1.2.3-55-g6feb