diff options
| author | Sean Hall <r.sean.hall@gmail.com> | 2020-03-26 15:21:06 +1000 |
|---|---|---|
| committer | Sean Hall <r.sean.hall@gmail.com> | 2020-03-30 21:30:04 +1000 |
| commit | afbc6889c73d58136cb8851858ca3c17f41dc2c5 (patch) | |
| tree | 1d7c66218176c7e8a28d49a4e22c60fe1e4e4c0d /src/WixToolset.Core.Burn | |
| parent | 192c5aa59b5d8e5e9df9095982317c224f3d4f04 (diff) | |
| download | wix-afbc6889c73d58136cb8851858ca3c17f41dc2c5.tar.gz wix-afbc6889c73d58136cb8851858ca3c17f41dc2c5.tar.bz2 wix-afbc6889c73d58136cb8851858ca3c17f41dc2c5.zip | |
Add BundleExtension element.
Add GetTestXml.
Fix issue with building with current version of burn.
Diffstat (limited to 'src/WixToolset.Core.Burn')
3 files changed, 19 insertions, 1 deletions
diff --git a/src/WixToolset.Core.Burn/Bundles/CreateBundleExeCommand.cs b/src/WixToolset.Core.Burn/Bundles/CreateBundleExeCommand.cs index bf0473d2..53636509 100644 --- a/src/WixToolset.Core.Burn/Bundles/CreateBundleExeCommand.cs +++ b/src/WixToolset.Core.Burn/Bundles/CreateBundleExeCommand.cs | |||
| @@ -125,7 +125,7 @@ namespace WixToolset.Core.Burn.Bundles | |||
| 125 | version.FileVersion = fourPartVersion; | 125 | version.FileVersion = fourPartVersion; |
| 126 | version.ProductVersion = fourPartVersion; | 126 | version.ProductVersion = fourPartVersion; |
| 127 | 127 | ||
| 128 | var strings = version[1033]; | 128 | var strings = version[1033] ?? version.Add(1033); |
| 129 | strings["LegalCopyright"] = bundleInfo.Copyright; | 129 | strings["LegalCopyright"] = bundleInfo.Copyright; |
| 130 | strings["OriginalFilename"] = Path.GetFileName(outputPath); | 130 | strings["OriginalFilename"] = Path.GetFileName(outputPath); |
| 131 | strings["FileVersion"] = bundleInfo.Version; // string versions do not have to be four parts. | 131 | strings["FileVersion"] = bundleInfo.Version; // string versions do not have to be four parts. |
diff --git a/src/WixToolset.Core.Burn/Bundles/CreateBurnManifestCommand.cs b/src/WixToolset.Core.Burn/Bundles/CreateBurnManifestCommand.cs index b7ea4116..64a01794 100644 --- a/src/WixToolset.Core.Burn/Bundles/CreateBurnManifestCommand.cs +++ b/src/WixToolset.Core.Burn/Bundles/CreateBurnManifestCommand.cs | |||
| @@ -621,6 +621,18 @@ namespace WixToolset.Core.Burn.Bundles | |||
| 621 | writer.WriteEndElement(); | 621 | writer.WriteEndElement(); |
| 622 | } | 622 | } |
| 623 | 623 | ||
| 624 | // Write the BundleExtension elements. | ||
| 625 | var bundleExtensions = this.Section.Tuples.OfType<WixBundleExtensionTuple>(); | ||
| 626 | |||
| 627 | foreach (var bundleExtension in bundleExtensions) | ||
| 628 | { | ||
| 629 | writer.WriteStartElement("BundleExtension"); | ||
| 630 | writer.WriteAttributeString("Id", bundleExtension.Id.Id); | ||
| 631 | writer.WriteAttributeString("EntryPayloadId", bundleExtension.PayloadRef); | ||
| 632 | |||
| 633 | writer.WriteEndElement(); | ||
| 634 | } | ||
| 635 | |||
| 624 | writer.WriteEndDocument(); // </BurnManifest> | 636 | writer.WriteEndDocument(); // </BurnManifest> |
| 625 | } | 637 | } |
| 626 | } | 638 | } |
diff --git a/src/WixToolset.Core.Burn/WixToolset.Core.Burn.csproj b/src/WixToolset.Core.Burn/WixToolset.Core.Burn.csproj index 3542f85a..ae0e7023 100644 --- a/src/WixToolset.Core.Burn/WixToolset.Core.Burn.csproj +++ b/src/WixToolset.Core.Burn/WixToolset.Core.Burn.csproj | |||
| @@ -11,6 +11,12 @@ | |||
| 11 | </PropertyGroup> | 11 | </PropertyGroup> |
| 12 | 12 | ||
| 13 | <ItemGroup> | 13 | <ItemGroup> |
| 14 | <AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo"> | ||
| 15 | <_Parameter1>WixToolset.Core.TestPackage</_Parameter1> | ||
| 16 | </AssemblyAttribute> | ||
| 17 | </ItemGroup> | ||
| 18 | |||
| 19 | <ItemGroup> | ||
| 14 | <ProjectReference Include="..\WixToolset.Core\WixToolset.Core.csproj" /> | 20 | <ProjectReference Include="..\WixToolset.Core\WixToolset.Core.csproj" /> |
| 15 | </ItemGroup> | 21 | </ItemGroup> |
| 16 | 22 | ||
