aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Core/CommandLine/BuildCommand.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/WixToolset.Core/CommandLine/BuildCommand.cs')
-rw-r--r--src/WixToolset.Core/CommandLine/BuildCommand.cs12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/WixToolset.Core/CommandLine/BuildCommand.cs b/src/WixToolset.Core/CommandLine/BuildCommand.cs
index b460e48f..16c98c83 100644
--- a/src/WixToolset.Core/CommandLine/BuildCommand.cs
+++ b/src/WixToolset.Core/CommandLine/BuildCommand.cs
@@ -6,6 +6,7 @@ namespace WixToolset.Core.CommandLine
6 using System.Collections.Generic; 6 using System.Collections.Generic;
7 using System.IO; 7 using System.IO;
8 using System.Linq; 8 using System.Linq;
9 using System.Xml.Linq;
9 using WixToolset.Data; 10 using WixToolset.Data;
10 using WixToolset.Extensibility.Data; 11 using WixToolset.Extensibility.Data;
11 using WixToolset.Extensibility.Services; 12 using WixToolset.Extensibility.Services;
@@ -173,7 +174,16 @@ namespace WixToolset.Core.CommandLine
173 preprocessor.Platform = Platform.X86; // TODO: set this correctly 174 preprocessor.Platform = Platform.X86; // TODO: set this correctly
174 preprocessor.SourcePath = sourceFile.SourcePath; 175 preprocessor.SourcePath = sourceFile.SourcePath;
175 preprocessor.Variables = this.PreprocessorVariables; 176 preprocessor.Variables = this.PreprocessorVariables;
176 var document = preprocessor.Execute(); 177
178 XDocument document = null;
179 try
180 {
181 document = preprocessor.Execute();
182 }
183 catch (WixException e)
184 {
185 this.Messaging.Write(e.Error);
186 }
177 187
178 if (this.Messaging.EncounteredError) 188 if (this.Messaging.EncounteredError)
179 { 189 {