aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Core/CommandLine/CompileCommand.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/WixToolset.Core/CommandLine/CompileCommand.cs')
-rw-r--r--src/WixToolset.Core/CommandLine/CompileCommand.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/WixToolset.Core/CommandLine/CompileCommand.cs b/src/WixToolset.Core/CommandLine/CompileCommand.cs
index bc37ee8c..0a354a8f 100644
--- a/src/WixToolset.Core/CommandLine/CompileCommand.cs
+++ b/src/WixToolset.Core/CommandLine/CompileCommand.cs
@@ -57,7 +57,7 @@ namespace WixToolset.Core.CommandLine
57 foreach (var sourceFile in this.SourceFiles) 57 foreach (var sourceFile in this.SourceFiles)
58 { 58 {
59 var context = this.ServiceProvider.GetService<IPreprocessContext>(); 59 var context = this.ServiceProvider.GetService<IPreprocessContext>();
60 context.Extensions = this.ExtensionManager.Create<IPreprocessorExtension>(); 60 context.Extensions = this.ExtensionManager.GetServices<IPreprocessorExtension>();
61 context.Platform = this.Platform; 61 context.Platform = this.Platform;
62 context.IncludeSearchPaths = this.IncludeSearchPaths; 62 context.IncludeSearchPaths = this.IncludeSearchPaths;
63 context.SourcePath = sourceFile.SourcePath; 63 context.SourcePath = sourceFile.SourcePath;
@@ -80,7 +80,7 @@ namespace WixToolset.Core.CommandLine
80 } 80 }
81 81
82 var compileContext = this.ServiceProvider.GetService<ICompileContext>(); 82 var compileContext = this.ServiceProvider.GetService<ICompileContext>();
83 compileContext.Extensions = this.ExtensionManager.Create<ICompilerExtension>(); 83 compileContext.Extensions = this.ExtensionManager.GetServices<ICompilerExtension>();
84 compileContext.OutputPath = sourceFile.OutputPath; 84 compileContext.OutputPath = sourceFile.OutputPath;
85 compileContext.Platform = this.Platform; 85 compileContext.Platform = this.Platform;
86 compileContext.Source = result?.Document; 86 compileContext.Source = result?.Document;