aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Core/Bind/ResolveFieldsCommand.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/WixToolset.Core/Bind/ResolveFieldsCommand.cs')
-rw-r--r--src/WixToolset.Core/Bind/ResolveFieldsCommand.cs9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/WixToolset.Core/Bind/ResolveFieldsCommand.cs b/src/WixToolset.Core/Bind/ResolveFieldsCommand.cs
index 9253f352..e8c90956 100644
--- a/src/WixToolset.Core/Bind/ResolveFieldsCommand.cs
+++ b/src/WixToolset.Core/Bind/ResolveFieldsCommand.cs
@@ -7,12 +7,15 @@ namespace WixToolset.Core.Bind
7 using WixToolset.Data; 7 using WixToolset.Data;
8 using WixToolset.Data.Bind; 8 using WixToolset.Data.Bind;
9 using WixToolset.Extensibility; 9 using WixToolset.Extensibility;
10 using WixToolset.Extensibility.Services;
10 11
11 /// <summary> 12 /// <summary>
12 /// Resolve source fields in the tables included in the output 13 /// Resolve source fields in the tables included in the output
13 /// </summary> 14 /// </summary>
14 internal class ResolveFieldsCommand 15 internal class ResolveFieldsCommand
15 { 16 {
17 public IMessaging Messaging { private get; set; }
18
16 public bool BuildingPatch { private get; set; } 19 public bool BuildingPatch { private get; set; }
17 20
18 public IBindVariableResolver BindVariableResolver { private get; set; } 21 public IBindVariableResolver BindVariableResolver { private get; set; }
@@ -75,7 +78,7 @@ namespace WixToolset.Core.Bind
75 } 78 }
76 79
77 // Move to next row if we've hit an error resolving variables. 80 // Move to next row if we've hit an error resolving variables.
78 if (Messaging.Instance.EncounteredError) // TODO: make this error handling more specific to just the failure to resolve variables in this field. 81 if (this.Messaging.EncounteredError) // TODO: make this error handling more specific to just the failure to resolve variables in this field.
79 { 82 {
80 continue; 83 continue;
81 } 84 }
@@ -151,7 +154,7 @@ namespace WixToolset.Core.Bind
151 catch (WixFileNotFoundException) 154 catch (WixFileNotFoundException)
152 { 155 {
153 // display the error with source line information 156 // display the error with source line information
154 Messaging.Instance.OnMessage(WixErrors.FileNotFound(row.SourceLineNumbers, objectField.Path)); 157 this.Messaging.Write(ErrorMessages.FileNotFound(row.SourceLineNumbers, objectField.Path));
155 } 158 }
156 } 159 }
157 160
@@ -208,7 +211,7 @@ namespace WixToolset.Core.Bind
208 catch (WixFileNotFoundException) 211 catch (WixFileNotFoundException)
209 { 212 {
210 // display the error with source line information 213 // display the error with source line information
211 Messaging.Instance.OnMessage(WixErrors.FileNotFound(row.SourceLineNumbers, (string)objectField.PreviousData)); 214 Messaging.Instance.Write(WixErrors.FileNotFound(row.SourceLineNumbers, (string)objectField.PreviousData));
212 } 215 }
213 } 216 }
214 } 217 }