aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRob Mensching <rob@firegiant.com>2021-02-27 15:38:50 -0800
committerRob Mensching <rob@firegiant.com>2021-02-27 15:42:33 -0800
commit1550b30702ae4e83ea8b30bf95a4f20a6424aa4b (patch)
tree5093d4cd9dbf7999782382e1b91ad225f9c121d7 /src
parent3fae69ccb71d99c79adba6855ba7d6402216085d (diff)
downloadwix-1550b30702ae4e83ea8b30bf95a4f20a6424aa4b.tar.gz
wix-1550b30702ae4e83ea8b30bf95a4f20a6424aa4b.tar.bz2
wix-1550b30702ae4e83ea8b30bf95a4f20a6424aa4b.zip
Include native .pdbs in .wixext.nupkg and refine build process
Diffstat (limited to 'src')
-rw-r--r--src/Cpp.Build.props2
-rw-r--r--src/FindLocalWix.props8
-rw-r--r--src/ca/dependencyca.vcxproj35
-rw-r--r--src/ca/packages.config5
-rw-r--r--src/test/WixToolsetTest.Dependency/WixToolsetTest.Dependency.csproj1
-rw-r--r--src/wixext/WixToolset.Dependency.wixext.csproj15
-rw-r--r--src/wixlib/dependency.wixproj8
7 files changed, 43 insertions, 31 deletions
diff --git a/src/Cpp.Build.props b/src/Cpp.Build.props
index 9b7a1bb5..8c7304ee 100644
--- a/src/Cpp.Build.props
+++ b/src/Cpp.Build.props
@@ -6,6 +6,8 @@
6 <Platform Condition=" '$(Platform)' == '' OR '$(Platform)' == 'AnyCPU' ">Win32</Platform> 6 <Platform Condition=" '$(Platform)' == '' OR '$(Platform)' == 'AnyCPU' ">Win32</Platform>
7 <IntDir>$(BaseIntermediateOutputPath)$(Configuration)\$(Platform)\</IntDir> 7 <IntDir>$(BaseIntermediateOutputPath)$(Configuration)\$(Platform)\</IntDir>
8 <OutDir>$(OutputPath)$(Platform)\</OutDir> 8 <OutDir>$(OutputPath)$(Platform)\</OutDir>
9 <RuntimeIdentifiers>win-x86;win-x64;win-arm64</RuntimeIdentifiers>
10 <NuGetTargetMoniker>native,Version=v0.0</NuGetTargetMoniker>
9 </PropertyGroup> 11 </PropertyGroup>
10 12
11 <PropertyGroup Condition="'$(WindowsTargetPlatformVersion)'=='' AND '$(VisualStudioVersion)'>='15.0'"> 13 <PropertyGroup Condition="'$(WindowsTargetPlatformVersion)'=='' AND '$(VisualStudioVersion)'>='15.0'">
diff --git a/src/FindLocalWix.props b/src/FindLocalWix.props
deleted file mode 100644
index 1666e4fe..00000000
--- a/src/FindLocalWix.props
+++ /dev/null
@@ -1,8 +0,0 @@
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. -->
3
4<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
5 <PropertyGroup>
6 <WixTargetsPath Condition=" '$(Configuration)' == 'Debug' And Exists('$(MSBuildThisFileDirectory)..\..\Tools\README.md') And Exists('$(MSBuildThisFileDirectory)..\..\Tools\build\Debug\net461\wix.targets') ">$(MSBuildThisFileDirectory)..\..\Tools\build\Debug\net461\wix.targets</WixTargetsPath>
7 </PropertyGroup>
8</Project>
diff --git a/src/ca/dependencyca.vcxproj b/src/ca/dependencyca.vcxproj
index 6cc0d24e..750deb3c 100644
--- a/src/ca/dependencyca.vcxproj
+++ b/src/ca/dependencyca.vcxproj
@@ -1,8 +1,7 @@
1<?xml version="1.0" encoding="utf-8"?> 1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. --> 2<!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. -->
3
3<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> 4<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
4 <Import Project="..\..\packages\WixToolset.DUtil.4.0.56\build\WixToolset.DUtil.props" Condition="Exists('..\..\packages\WixToolset.DUtil.4.0.56\build\WixToolset.DUtil.props')" />
5 <Import Project="..\..\packages\WixToolset.WcaUtil.4.0.17\build\WixToolset.WcaUtil.props" Condition="Exists('..\..\packages\WixToolset.WcaUtil.4.0.17\build\WixToolset.WcaUtil.props')" />
6 <ItemGroup Label="ProjectConfigurations"> 5 <ItemGroup Label="ProjectConfigurations">
7 <ProjectConfiguration Include="Debug|Win32"> 6 <ProjectConfiguration Include="Debug|Win32">
8 <Configuration>Debug</Configuration> 7 <Configuration>Debug</Configuration>
@@ -29,6 +28,7 @@
29 <Platform>ARM64</Platform> 28 <Platform>ARM64</Platform>
30 </ProjectConfiguration> 29 </ProjectConfiguration>
31 </ItemGroup> 30 </ItemGroup>
31
32 <PropertyGroup Label="Globals"> 32 <PropertyGroup Label="Globals">
33 <ProjectGuid>{B86AF46C-0F90-49CC-923F-A800B088D015}</ProjectGuid> 33 <ProjectGuid>{B86AF46C-0F90-49CC-923F-A800B088D015}</ProjectGuid>
34 <ConfigurationType>DynamicLibrary</ConfigurationType> 34 <ConfigurationType>DynamicLibrary</ConfigurationType>
@@ -39,30 +39,43 @@
39 <Description>WiX Toolset Dependency CustomAction</Description> 39 <Description>WiX Toolset Dependency CustomAction</Description>
40 <WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion> 40 <WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
41 </PropertyGroup> 41 </PropertyGroup>
42
42 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> 43 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
43 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> 44 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
45
44 <PropertyGroup> 46 <PropertyGroup>
45 <ProjectAdditionalLinkLibraries>msi.lib</ProjectAdditionalLinkLibraries> 47 <ProjectAdditionalLinkLibraries>msi.lib</ProjectAdditionalLinkLibraries>
46 </PropertyGroup> 48 </PropertyGroup>
49
47 <ItemGroup> 50 <ItemGroup>
48 <ClCompile Include="dllmain.cpp"> 51 <ClCompile Include="dllmain.cpp">
49 <PrecompiledHeader>Create</PrecompiledHeader> 52 <PrecompiledHeader>Create</PrecompiledHeader>
50 </ClCompile> 53 </ClCompile>
51 <ClCompile Include="wixdepca.cpp" /> 54 <ClCompile Include="wixdepca.cpp" />
52 </ItemGroup> 55 </ItemGroup>
56
53 <ItemGroup> 57 <ItemGroup>
54 <ClInclude Include="precomp.h" /> 58 <ClInclude Include="precomp.h" />
55 </ItemGroup> 59 </ItemGroup>
60
56 <ItemGroup> 61 <ItemGroup>
57 <None Include="packages.config" />
58 <None Include="wixdepca.def" /> 62 <None Include="wixdepca.def" />
59 </ItemGroup> 63 </ItemGroup>
64
65 <ItemGroup>
66 <PackageReference Include="WixToolset.Dutil">
67 <Version>4.0.62</Version>
68 </PackageReference>
69 <PackageReference Include="WixToolset.WcaUtil">
70 <Version>4.0.18</Version>
71 </PackageReference>
72 <PackageReference Include="Microsoft.SourceLink.GitHub">
73 <Version>1.0.0</Version>
74 </PackageReference>
75 <PackageReference Include="Nerdbank.GitVersioning">
76 <Version>3.3.37</Version>
77 </PackageReference>
78 </ItemGroup>
79
60 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> 80 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
61 <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"> 81</Project>
62 <PropertyGroup>
63 <ErrorText>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}.</ErrorText>
64 </PropertyGroup>
65 <Error Condition="!Exists('..\..\packages\WixToolset.DUtil.4.0.56\build\WixToolset.DUtil.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\WixToolset.DUtil.4.0.56\build\WixToolset.DUtil.props'))" />
66 <Error Condition="!Exists('..\..\packages\WixToolset.WcaUtil.4.0.17\build\WixToolset.WcaUtil.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\WixToolset.WcaUtil.4.0.17\build\WixToolset.WcaUtil.props'))" />
67 </Target>
68</Project> \ No newline at end of file
diff --git a/src/ca/packages.config b/src/ca/packages.config
deleted file mode 100644
index 9d88f529..00000000
--- a/src/ca/packages.config
+++ /dev/null
@@ -1,5 +0,0 @@
1<?xml version="1.0" encoding="utf-8"?>
2<packages>
3 <package id="WixToolset.DUtil" version="4.0.56" targetFramework="native" />
4 <package id="WixToolset.WcaUtil" version="4.0.17" targetFramework="native" />
5</packages> \ 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 2d3e40c3..0b80dc83 100644
--- a/src/test/WixToolsetTest.Dependency/WixToolsetTest.Dependency.csproj
+++ b/src/test/WixToolsetTest.Dependency/WixToolsetTest.Dependency.csproj
@@ -4,6 +4,7 @@
4<Project Sdk="Microsoft.NET.Sdk"> 4<Project Sdk="Microsoft.NET.Sdk">
5 <PropertyGroup> 5 <PropertyGroup>
6 <TargetFramework>netcoreapp3.1</TargetFramework> 6 <TargetFramework>netcoreapp3.1</TargetFramework>
7 <DebugType>embedded</DebugType>
7 <IsPackable>false</IsPackable> 8 <IsPackable>false</IsPackable>
8 </PropertyGroup> 9 </PropertyGroup>
9 10
diff --git a/src/wixext/WixToolset.Dependency.wixext.csproj b/src/wixext/WixToolset.Dependency.wixext.csproj
index 9fac8aae..fcdab28c 100644
--- a/src/wixext/WixToolset.Dependency.wixext.csproj
+++ b/src/wixext/WixToolset.Dependency.wixext.csproj
@@ -4,21 +4,22 @@
4<Project Sdk="Microsoft.NET.Sdk"> 4<Project Sdk="Microsoft.NET.Sdk">
5 <PropertyGroup> 5 <PropertyGroup>
6 <TargetFramework>netstandard2.0</TargetFramework> 6 <TargetFramework>netstandard2.0</TargetFramework>
7 <DebugType>embedded</DebugType>
7 <RootNamespace>WixToolset.Dependency</RootNamespace> 8 <RootNamespace>WixToolset.Dependency</RootNamespace>
8 <Description>WiX Toolset Dependency Extension</Description> 9 <Description>WiX Toolset Dependency Extension</Description>
9 <Title>WiX Toolset Dependency Extension</Title> 10 <Title>WiX Toolset Dependency Extension</Title>
10 <IsTool>true</IsTool> 11 <IsTool>true</IsTool>
11 <ContentTargetFolders>build</ContentTargetFolders> 12 <PublishRepositoryUrl>true</PublishRepositoryUrl>
13 <SuppressDependenciesWhenPacking>true</SuppressDependenciesWhenPacking>
12 </PropertyGroup> 14 </PropertyGroup>
13 15
14 <ItemGroup> 16 <ItemGroup>
15 <Content Include="$(MSBuildThisFileName).targets" />
16 <EmbeddedResource Include="$(OutputPath)..\dependency.wixlib" /> 17 <EmbeddedResource Include="$(OutputPath)..\dependency.wixlib" />
17 </ItemGroup> 18 </ItemGroup>
18 19
19 <ItemGroup> 20 <ItemGroup>
20 <PackageReference Include="WixToolset.Data" Version="4.0.*" PrivateAssets="all" /> 21 <Content Include="$(MSBuildThisFileName).targets" PackagePath="build" />
21 <PackageReference Include="WixToolset.Extensibility" Version="4.0.*" PrivateAssets="all" /> 22 <Content Include="$(OutputPath)..\**\*.pdb" PackagePath="pdbs\%(RelativeFolder)" />
22 </ItemGroup> 23 </ItemGroup>
23 24
24 <ItemGroup> 25 <ItemGroup>
@@ -26,6 +27,12 @@
26 </ItemGroup> 27 </ItemGroup>
27 28
28 <ItemGroup> 29 <ItemGroup>
30 <PackageReference Include="WixToolset.Data" Version="4.0.*" PrivateAssets="all" />
31 <PackageReference Include="WixToolset.Extensibility" Version="4.0.*" PrivateAssets="all" />
32 </ItemGroup>
33
34 <ItemGroup>
35 <PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="all" />
29 <PackageReference Include="Nerdbank.GitVersioning" Version="3.3.37" PrivateAssets="all" /> 36 <PackageReference Include="Nerdbank.GitVersioning" Version="3.3.37" PrivateAssets="all" />
30 </ItemGroup> 37 </ItemGroup>
31</Project> 38</Project>
diff --git a/src/wixlib/dependency.wixproj b/src/wixlib/dependency.wixproj
index 6a04e2a4..76e3ecd3 100644
--- a/src/wixlib/dependency.wixproj
+++ b/src/wixlib/dependency.wixproj
@@ -1,4 +1,6 @@
1<?xml version="1.0" encoding="utf-8"?>
1<!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. --> 2<!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. -->
3
2<Project Sdk="WixToolset.Sdk"> 4<Project Sdk="WixToolset.Sdk">
3 5
4 <PropertyGroup> 6 <PropertyGroup>
@@ -16,9 +18,9 @@
16 </ItemGroup> 18 </ItemGroup>
17 19
18 <ItemGroup> 20 <ItemGroup>
19 <ProjectReference Include="..\ca\dependencyca.vcxproj" Properties="Platform=ARM64" /> 21 <ProjectReference Include="..\ca\dependencyca.vcxproj" Properties="Platform=ARM64" ReferenceOutputAssembly="false" />
20 <ProjectReference Include="..\ca\dependencyca.vcxproj" Properties="Platform=x86" /> 22 <ProjectReference Include="..\ca\dependencyca.vcxproj" Properties="Platform=x86" ReferenceOutputAssembly="false" />
21 <ProjectReference Include="..\ca\dependencyca.vcxproj" Properties="Platform=x64" /> 23 <ProjectReference Include="..\ca\dependencyca.vcxproj" Properties="Platform=x64" ReferenceOutputAssembly="false" />
22 </ItemGroup> 24 </ItemGroup>
23 25
24 <ItemGroup> 26 <ItemGroup>