diff options
Diffstat (limited to 'src/WixToolset.Core/Binder.cs')
-rw-r--r-- | src/WixToolset.Core/Binder.cs | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/WixToolset.Core/Binder.cs b/src/WixToolset.Core/Binder.cs index e282ead8..2369b600 100644 --- a/src/WixToolset.Core/Binder.cs +++ b/src/WixToolset.Core/Binder.cs | |||
@@ -215,7 +215,7 @@ namespace WixToolset.Core | |||
215 | this.Layout(bindResult); | 215 | this.Layout(bindResult); |
216 | } | 216 | } |
217 | 217 | ||
218 | return Messaging.Instance.EncounteredError; | 218 | return this.Context.Messaging.EncounteredError; |
219 | } | 219 | } |
220 | 220 | ||
221 | private ResolveResult Resolve() | 221 | private ResolveResult Resolve() |
@@ -227,6 +227,7 @@ namespace WixToolset.Core | |||
227 | IEnumerable<DelayedField> delayedFields; | 227 | IEnumerable<DelayedField> delayedFields; |
228 | { | 228 | { |
229 | var command = new ResolveFieldsCommand(); | 229 | var command = new ResolveFieldsCommand(); |
230 | command.Messaging = this.Context.Messaging; | ||
230 | command.BuildingPatch = buildingPatch; | 231 | command.BuildingPatch = buildingPatch; |
231 | command.BindVariableResolver = this.Context.WixVariableResolver; | 232 | command.BindVariableResolver = this.Context.WixVariableResolver; |
232 | command.BindPaths = this.Context.BindPaths; | 233 | command.BindPaths = this.Context.BindPaths; |
@@ -437,12 +438,12 @@ namespace WixToolset.Core | |||
437 | { | 438 | { |
438 | if (!this.DeleteTempFiles()) | 439 | if (!this.DeleteTempFiles()) |
439 | { | 440 | { |
440 | this.Context.Messaging.OnMessage(WixWarnings.FailedToDeleteTempDir(this.TempFilesLocation)); | 441 | this.Context.Messaging.Write(WarningMessages.FailedToDeleteTempDir(this.TempFilesLocation)); |
441 | } | 442 | } |
442 | } | 443 | } |
443 | else | 444 | else |
444 | { | 445 | { |
445 | this.Context.Messaging.OnMessage(WixVerboses.BinderTempDirLocatedAt(this.TempFilesLocation)); | 446 | this.Context.Messaging.Write(VerboseMessages.BinderTempDirLocatedAt(this.TempFilesLocation)); |
446 | } | 447 | } |
447 | } | 448 | } |
448 | 449 | ||
@@ -594,9 +595,9 @@ namespace WixToolset.Core | |||
594 | { | 595 | { |
595 | if (null != transfers && transfers.Any()) | 596 | if (null != transfers && transfers.Any()) |
596 | { | 597 | { |
597 | this.Context.Messaging.OnMessage(WixVerboses.LayingOutMedia()); | 598 | this.Context.Messaging.Write(VerboseMessages.LayingOutMedia()); |
598 | 599 | ||
599 | var command = new TransferFilesCommand(this.Context.BindPaths, this.Context.Extensions, transfers, this.Context.SuppressAclReset); | 600 | var command = new TransferFilesCommand(this.Context.Messaging, this.Context.BindPaths, this.Context.Extensions, transfers, this.Context.SuppressAclReset); |
600 | command.Execute(); | 601 | command.Execute(); |
601 | } | 602 | } |
602 | } | 603 | } |
@@ -613,7 +614,7 @@ namespace WixToolset.Core | |||
613 | { | 614 | { |
614 | if (!directories.ContainsKey(directory)) | 615 | if (!directories.ContainsKey(directory)) |
615 | { | 616 | { |
616 | throw new WixException(WixErrors.ExpectedDirectory(directory)); | 617 | throw new WixException(ErrorMessages.ExpectedDirectory(directory)); |
617 | } | 618 | } |
618 | 619 | ||
619 | ResolvedDirectory resolvedDirectory = (ResolvedDirectory)directories[directory]; | 620 | ResolvedDirectory resolvedDirectory = (ResolvedDirectory)directories[directory]; |