diff options
| author | Rob Mensching <rob@firegiant.com> | 2018-10-24 21:02:24 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@robmensching.com> | 2018-10-24 21:17:34 -0700 |
| commit | a5c63c90a02665267c11c8bf2c653fd6db8d0107 (patch) | |
| tree | ebd38c870168ec613bc36b0ddf9d34d9e6e78b8e /src/WixToolset.Core/CommandLine/CompileCommand.cs | |
| parent | 0ecb2ac1ba28d33b0b3d17a2d7134d2f5485814d (diff) | |
| download | wix-a5c63c90a02665267c11c8bf2c653fd6db8d0107.tar.gz wix-a5c63c90a02665267c11c8bf2c653fd6db8d0107.tar.bz2 wix-a5c63c90a02665267c11c8bf2c653fd6db8d0107.zip | |
Update to command-line parsing re-organization
Diffstat (limited to 'src/WixToolset.Core/CommandLine/CompileCommand.cs')
| -rw-r--r-- | src/WixToolset.Core/CommandLine/CompileCommand.cs | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/src/WixToolset.Core/CommandLine/CompileCommand.cs b/src/WixToolset.Core/CommandLine/CompileCommand.cs index 4007c263..69e35cab 100644 --- a/src/WixToolset.Core/CommandLine/CompileCommand.cs +++ b/src/WixToolset.Core/CommandLine/CompileCommand.cs | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. | 1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. |
| 2 | 2 | ||
| 3 | namespace WixToolset.Core.CommandLine | 3 | namespace WixToolset.Core.CommandLine |
| 4 | { | 4 | { |
| @@ -12,6 +12,13 @@ namespace WixToolset.Core.CommandLine | |||
| 12 | 12 | ||
| 13 | internal class CompileCommand : ICommandLineCommand | 13 | internal class CompileCommand : ICommandLineCommand |
| 14 | { | 14 | { |
| 15 | public CompileCommand(IServiceProvider serviceProvider) | ||
| 16 | { | ||
| 17 | this.ServiceProvider = serviceProvider; | ||
| 18 | this.Messaging = serviceProvider.GetService<IMessaging>(); | ||
| 19 | this.ExtensionManager = serviceProvider.GetService<IExtensionManager>(); | ||
| 20 | } | ||
| 21 | |||
| 15 | public CompileCommand(IServiceProvider serviceProvider, IEnumerable<SourceFile> sources, IDictionary<string, string> preprocessorVariables, Platform platform) | 22 | public CompileCommand(IServiceProvider serviceProvider, IEnumerable<SourceFile> sources, IDictionary<string, string> preprocessorVariables, Platform platform) |
| 16 | { | 23 | { |
| 17 | this.ServiceProvider = serviceProvider; | 24 | this.ServiceProvider = serviceProvider; |
| @@ -36,6 +43,15 @@ namespace WixToolset.Core.CommandLine | |||
| 36 | 43 | ||
| 37 | public IEnumerable<string> IncludeSearchPaths { get; } | 44 | public IEnumerable<string> IncludeSearchPaths { get; } |
| 38 | 45 | ||
| 46 | public bool ShowLogo => throw new NotImplementedException(); | ||
| 47 | |||
| 48 | public bool StopParsing => throw new NotImplementedException(); | ||
| 49 | |||
| 50 | public bool TryParseArgument(ICommandLineParser parseHelper, string argument) | ||
| 51 | { | ||
| 52 | throw new NotImplementedException(); | ||
| 53 | } | ||
| 54 | |||
| 39 | public int Execute() | 55 | public int Execute() |
| 40 | { | 56 | { |
| 41 | foreach (var sourceFile in this.SourceFiles) | 57 | foreach (var sourceFile in this.SourceFiles) |
