diff options
Diffstat (limited to 'src/WixToolset.Core/CommandLine/BuildCommand.cs')
-rw-r--r-- | src/WixToolset.Core/CommandLine/BuildCommand.cs | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/WixToolset.Core/CommandLine/BuildCommand.cs b/src/WixToolset.Core/CommandLine/BuildCommand.cs index 7e6ddd64..bfee2478 100644 --- a/src/WixToolset.Core/CommandLine/BuildCommand.cs +++ b/src/WixToolset.Core/CommandLine/BuildCommand.cs | |||
@@ -187,7 +187,7 @@ namespace WixToolset.Core.CommandLine | |||
187 | } | 187 | } |
188 | 188 | ||
189 | var context = this.ServiceProvider.GetService<ICompileContext>(); | 189 | var context = this.ServiceProvider.GetService<ICompileContext>(); |
190 | context.Extensions = this.ExtensionManager.Create<ICompilerExtension>(); | 190 | context.Extensions = this.ExtensionManager.GetServices<ICompilerExtension>(); |
191 | context.OutputPath = sourceFile.OutputPath; | 191 | context.OutputPath = sourceFile.OutputPath; |
192 | context.Platform = this.Platform; | 192 | context.Platform = this.Platform; |
193 | context.Source = document; | 193 | context.Source = document; |
@@ -219,7 +219,7 @@ namespace WixToolset.Core.CommandLine | |||
219 | var context = this.ServiceProvider.GetService<ILibraryContext>(); | 219 | var context = this.ServiceProvider.GetService<ILibraryContext>(); |
220 | context.BindFiles = bindFiles; | 220 | context.BindFiles = bindFiles; |
221 | context.BindPaths = bindPaths; | 221 | context.BindPaths = bindPaths; |
222 | context.Extensions = this.ExtensionManager.Create<ILibrarianExtension>(); | 222 | context.Extensions = this.ExtensionManager.GetServices<ILibrarianExtension>(); |
223 | context.Localizations = localizations; | 223 | context.Localizations = localizations; |
224 | context.Intermediates = intermediates; | 224 | context.Intermediates = intermediates; |
225 | 225 | ||
@@ -247,8 +247,8 @@ namespace WixToolset.Core.CommandLine | |||
247 | } | 247 | } |
248 | 248 | ||
249 | var context = this.ServiceProvider.GetService<ILinkContext>(); | 249 | var context = this.ServiceProvider.GetService<ILinkContext>(); |
250 | context.Extensions = this.ExtensionManager.Create<ILinkerExtension>(); | 250 | context.Extensions = this.ExtensionManager.GetServices<ILinkerExtension>(); |
251 | context.ExtensionData = this.ExtensionManager.Create<IExtensionData>(); | 251 | context.ExtensionData = this.ExtensionManager.GetServices<IExtensionData>(); |
252 | context.ExpectedOutputType = this.OutputType; | 252 | context.ExpectedOutputType = this.OutputType; |
253 | context.Intermediates = intermediates.Concat(libraries).ToList(); | 253 | context.Intermediates = intermediates.Concat(libraries).ToList(); |
254 | context.TupleDefinitionCreator = creator; | 254 | context.TupleDefinitionCreator = creator; |
@@ -269,8 +269,8 @@ namespace WixToolset.Core.CommandLine | |||
269 | { | 269 | { |
270 | var context = this.ServiceProvider.GetService<IResolveContext>(); | 270 | var context = this.ServiceProvider.GetService<IResolveContext>(); |
271 | context.BindPaths = bindPaths; | 271 | context.BindPaths = bindPaths; |
272 | context.Extensions = this.ExtensionManager.Create<IResolverExtension>(); | 272 | context.Extensions = this.ExtensionManager.GetServices<IResolverExtension>(); |
273 | context.ExtensionData = this.ExtensionManager.Create<IExtensionData>(); | 273 | context.ExtensionData = this.ExtensionManager.GetServices<IExtensionData>(); |
274 | context.FilterCultures = filterCultures; | 274 | context.FilterCultures = filterCultures; |
275 | context.IntermediateFolder = intermediateFolder; | 275 | context.IntermediateFolder = intermediateFolder; |
276 | context.IntermediateRepresentation = output; | 276 | context.IntermediateRepresentation = output; |
@@ -295,7 +295,7 @@ namespace WixToolset.Core.CommandLine | |||
295 | //context.DefaultCompressionLevel = this.DefaultCompressionLevel; | 295 | //context.DefaultCompressionLevel = this.DefaultCompressionLevel; |
296 | context.DelayedFields = resolveResult.DelayedFields; | 296 | context.DelayedFields = resolveResult.DelayedFields; |
297 | context.ExpectedEmbeddedFiles = resolveResult.ExpectedEmbeddedFiles; | 297 | context.ExpectedEmbeddedFiles = resolveResult.ExpectedEmbeddedFiles; |
298 | context.Extensions = this.ExtensionManager.Create<IBinderExtension>(); | 298 | context.Extensions = this.ExtensionManager.GetServices<IBinderExtension>(); |
299 | context.Ices = Array.Empty<string>(); // TODO: set this correctly | 299 | context.Ices = Array.Empty<string>(); // TODO: set this correctly |
300 | context.IntermediateFolder = intermediateFolder; | 300 | context.IntermediateFolder = intermediateFolder; |
301 | context.IntermediateRepresentation = resolveResult.IntermediateRepresentation; | 301 | context.IntermediateRepresentation = resolveResult.IntermediateRepresentation; |
@@ -315,7 +315,7 @@ namespace WixToolset.Core.CommandLine | |||
315 | 315 | ||
316 | { | 316 | { |
317 | var context = this.ServiceProvider.GetService<ILayoutContext>(); | 317 | var context = this.ServiceProvider.GetService<ILayoutContext>(); |
318 | context.Extensions = this.ExtensionManager.Create<ILayoutExtension>(); | 318 | context.Extensions = this.ExtensionManager.GetServices<ILayoutExtension>(); |
319 | context.TrackedFiles = bindResult.TrackedFiles; | 319 | context.TrackedFiles = bindResult.TrackedFiles; |
320 | context.FileTransfers = bindResult.FileTransfers; | 320 | context.FileTransfers = bindResult.FileTransfers; |
321 | context.IntermediateFolder = intermediateFolder; | 321 | context.IntermediateFolder = intermediateFolder; |
@@ -371,7 +371,7 @@ namespace WixToolset.Core.CommandLine | |||
371 | private XDocument Preprocess(IDictionary<string, string> preprocessorVariables, string sourcePath) | 371 | private XDocument Preprocess(IDictionary<string, string> preprocessorVariables, string sourcePath) |
372 | { | 372 | { |
373 | var context = this.ServiceProvider.GetService<IPreprocessContext>(); | 373 | var context = this.ServiceProvider.GetService<IPreprocessContext>(); |
374 | context.Extensions = this.ExtensionManager.Create<IPreprocessorExtension>(); | 374 | context.Extensions = this.ExtensionManager.GetServices<IPreprocessorExtension>(); |
375 | context.Platform = this.Platform; | 375 | context.Platform = this.Platform; |
376 | context.IncludeSearchPaths = this.IncludeSearchPaths; | 376 | context.IncludeSearchPaths = this.IncludeSearchPaths; |
377 | context.SourcePath = sourcePath; | 377 | context.SourcePath = sourcePath; |