From bfd280115ae55bf0e63f5a787c0ab3a3cf8efa32 Mon Sep 17 00:00:00 2001 From: Rob Mensching Date: Wed, 3 Jan 2018 15:05:31 -0800 Subject: Update Extensiblity for update to IWindowsInstallerBackendExtension.PostBackendBind() --- .../Bind/BindDatabaseCommand.cs | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'src/WixToolset.Core.WindowsInstaller/Bind/BindDatabaseCommand.cs') diff --git a/src/WixToolset.Core.WindowsInstaller/Bind/BindDatabaseCommand.cs b/src/WixToolset.Core.WindowsInstaller/Bind/BindDatabaseCommand.cs index 205feeac..2e4b4827 100644 --- a/src/WixToolset.Core.WindowsInstaller/Bind/BindDatabaseCommand.cs +++ b/src/WixToolset.Core.WindowsInstaller/Bind/BindDatabaseCommand.cs @@ -36,7 +36,6 @@ namespace WixToolset.Core.WindowsInstaller.Bind this.Intermediate = context.IntermediateRepresentation; this.Messaging = context.Messaging; this.OutputPath = context.OutputPath; - this.PdbFile = context.OutputPdbPath; this.IntermediateFolder = context.IntermediateFolder; this.Validator = validator; @@ -61,8 +60,6 @@ namespace WixToolset.Core.WindowsInstaller.Bind private IEnumerable BackendExtensions { get; } - private string PdbFile { get; } - private Intermediate Intermediate { get; } private IMessaging Messaging { get; } @@ -84,6 +81,8 @@ namespace WixToolset.Core.WindowsInstaller.Bind public IEnumerable ContentFilePaths { get; private set; } + public Pdb Pdb { get; private set; } + public void Execute() { var section = this.Intermediate.Sections.Single(); @@ -428,14 +427,6 @@ namespace WixToolset.Core.WindowsInstaller.Bind return; } - // Output the output to a file. - if (!String.IsNullOrEmpty(this.PdbFile)) - { - Pdb pdb = new Pdb(); - pdb.Output = output; - pdb.Save(this.PdbFile); - } - // Merge modules. if (containsMergeModules) { @@ -514,6 +505,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind this.FileTransfers = fileTransfers; this.ContentFilePaths = fileFacades.Select(r => r.WixFile.Source.Path).ToList(); + this.Pdb = new Pdb { Output = output }; // TODO: Eventually this gets removed var intermediate = new Intermediate(this.Intermediate.Id, new[] { section }, this.Intermediate.Localizations.ToDictionary(l => l.Culture, StringComparer.OrdinalIgnoreCase), this.Intermediate.EmbedFilePaths); -- cgit v1.2.3-55-g6feb