From 1550b30702ae4e83ea8b30bf95a4f20a6424aa4b Mon Sep 17 00:00:00 2001 From: Rob Mensching Date: Sat, 27 Feb 2021 15:38:50 -0800 Subject: [PATCH] Include native .pdbs in .wixext.nupkg and refine build process --- appveyor.cmd | 17 +++++---- src/Cpp.Build.props | 2 ++ src/FindLocalWix.props | 8 ----- src/ca/dependencyca.vcxproj | 35 +++++++++++++------ src/ca/packages.config | 5 --- .../WixToolsetTest.Dependency.csproj | 1 + .../WixToolset.Dependency.wixext.csproj | 15 +++++--- src/wixlib/dependency.wixproj | 8 +++-- 8 files changed, 54 insertions(+), 37 deletions(-) delete mode 100644 src/FindLocalWix.props delete mode 100644 src/ca/packages.config diff --git a/appveyor.cmd b/appveyor.cmd index 6bb3b54..3450d53 100644 --- a/appveyor.cmd +++ b/appveyor.cmd @@ -1,14 +1,19 @@ @setlocal @pushd %~dp0 +@set _C=Release +@if /i "%1"=="debug" set _C=Debug -nuget restore || exit /b +:: Restore +msbuild -p:Configuration=%_C% -t:Restore || exit /b -msbuild -p:Configuration=Release -t:Restore || exit /b +:: Build +msbuild -p:Configuration=%_C% src\test\WixToolsetTest.Dependency\WixToolsetTest.Dependency.csproj || exit /b -msbuild -p:Configuration=Release src\test\WixToolsetTest.Dependency\WixToolsetTest.Dependency.csproj || exit /b -dotnet test -c Release --no-build src\test\WixToolsetTest.Dependency || exit /b +:: Test +dotnet test -c %_C% --no-build src\test\WixToolsetTest.Dependency || exit /b -msbuild -p:Configuration=Release -t:Pack src\wixext\WixToolset.Dependency.wixext.csproj || exit /b +:: Pack +msbuild -p:Configuration=%_C% -p:NoBuild=true -t:Pack src\wixext\WixToolset.Dependency.wixext.csproj || exit /b @popd -@endlocal \ No newline at end of file +@endlocal diff --git a/src/Cpp.Build.props b/src/Cpp.Build.props index 9b7a1bb..8c7304e 100644 --- a/src/Cpp.Build.props +++ b/src/Cpp.Build.props @@ -6,6 +6,8 @@ Win32 $(BaseIntermediateOutputPath)$(Configuration)\$(Platform)\ $(OutputPath)$(Platform)\ + win-x86;win-x64;win-arm64 + native,Version=v0.0 diff --git a/src/FindLocalWix.props b/src/FindLocalWix.props deleted file mode 100644 index 1666e4f..0000000 --- a/src/FindLocalWix.props +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - $(MSBuildThisFileDirectory)..\..\Tools\build\Debug\net461\wix.targets - - diff --git a/src/ca/dependencyca.vcxproj b/src/ca/dependencyca.vcxproj index 6cc0d24..750deb3 100644 --- a/src/ca/dependencyca.vcxproj +++ b/src/ca/dependencyca.vcxproj @@ -1,8 +1,7 @@ + - - Debug @@ -29,6 +28,7 @@ ARM64 + {B86AF46C-0F90-49CC-923F-A800B088D015} DynamicLibrary @@ -39,30 +39,43 @@ WiX Toolset Dependency CustomAction 10.0 + + msi.lib + Create + + - + + + + 4.0.62 + + + 4.0.18 + + + 1.0.0 + + + 3.3.37 + + + - - - This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. - - - - - \ No newline at end of file + diff --git a/src/ca/packages.config b/src/ca/packages.config deleted file mode 100644 index 9d88f52..0000000 --- a/src/ca/packages.config +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/test/WixToolsetTest.Dependency/WixToolsetTest.Dependency.csproj b/src/test/WixToolsetTest.Dependency/WixToolsetTest.Dependency.csproj index 2d3e40c..0b80dc8 100644 --- a/src/test/WixToolsetTest.Dependency/WixToolsetTest.Dependency.csproj +++ b/src/test/WixToolsetTest.Dependency/WixToolsetTest.Dependency.csproj @@ -4,6 +4,7 @@ netcoreapp3.1 + embedded false diff --git a/src/wixext/WixToolset.Dependency.wixext.csproj b/src/wixext/WixToolset.Dependency.wixext.csproj index 9fac8aa..fcdab28 100644 --- a/src/wixext/WixToolset.Dependency.wixext.csproj +++ b/src/wixext/WixToolset.Dependency.wixext.csproj @@ -4,21 +4,22 @@ netstandard2.0 + embedded WixToolset.Dependency WiX Toolset Dependency Extension WiX Toolset Dependency Extension true - build + true + true - - - + + @@ -26,6 +27,12 @@ + + + + + + diff --git a/src/wixlib/dependency.wixproj b/src/wixlib/dependency.wixproj index 6a04e2a..76e3ecd 100644 --- a/src/wixlib/dependency.wixproj +++ b/src/wixlib/dependency.wixproj @@ -1,4 +1,6 @@ + + @@ -16,9 +18,9 @@ - - - + + +