diff options
| author | Rob Mensching <rob@firegiant.com> | 2017-12-31 02:17:12 -0800 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2017-12-31 02:17:12 -0800 |
| commit | 651ad904724f32f5e993fa73aa11a611d95a1a10 (patch) | |
| tree | c3f3541f36fe0dda04f2b756b59a0d7c535dbffa /src/WixToolset.Core/CommandLine/BuildCommand.cs | |
| parent | 84d1f05fee656c01938613bcc50bd8139006bbf6 (diff) | |
| download | wix-651ad904724f32f5e993fa73aa11a611d95a1a10.tar.gz wix-651ad904724f32f5e993fa73aa11a611d95a1a10.tar.bz2 wix-651ad904724f32f5e993fa73aa11a611d95a1a10.zip | |
Support filtering localizations by culture
Diffstat (limited to 'src/WixToolset.Core/CommandLine/BuildCommand.cs')
| -rw-r--r-- | src/WixToolset.Core/CommandLine/BuildCommand.cs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/WixToolset.Core/CommandLine/BuildCommand.cs b/src/WixToolset.Core/CommandLine/BuildCommand.cs index 48f1b214..5097bd9b 100644 --- a/src/WixToolset.Core/CommandLine/BuildCommand.cs +++ b/src/WixToolset.Core/CommandLine/BuildCommand.cs | |||
| @@ -13,20 +13,20 @@ namespace WixToolset.Core.CommandLine | |||
| 13 | 13 | ||
| 14 | internal class BuildCommand : ICommandLineCommand | 14 | internal class BuildCommand : ICommandLineCommand |
| 15 | { | 15 | { |
| 16 | public BuildCommand(IServiceProvider serviceProvider, IEnumerable<SourceFile> sources, IDictionary<string, string> preprocessorVariables, IEnumerable<string> locFiles, IEnumerable<string> libraryFiles, string outputPath, OutputType outputType, string cabCachePath, IEnumerable<string> cultures, bool bindFiles, IEnumerable<BindPath> bindPaths, IEnumerable<string> includeSearchPaths, string intermediateFolder, string contentsFile, string outputsFile, string builtOutputsFile) | 16 | public BuildCommand(IServiceProvider serviceProvider, IEnumerable<SourceFile> sources, IDictionary<string, string> preprocessorVariables, IEnumerable<string> locFiles, IEnumerable<string> libraryFiles, IEnumerable<string> filterCultures, string outputPath, OutputType outputType, string cabCachePath, bool bindFiles, IEnumerable<BindPath> bindPaths, IEnumerable<string> includeSearchPaths, string intermediateFolder, string contentsFile, string outputsFile, string builtOutputsFile) |
| 17 | { | 17 | { |
| 18 | this.ServiceProvider = serviceProvider; | 18 | this.ServiceProvider = serviceProvider; |
| 19 | this.Messaging = serviceProvider.GetService<IMessaging>(); | 19 | this.Messaging = serviceProvider.GetService<IMessaging>(); |
| 20 | this.ExtensionManager = serviceProvider.GetService<IExtensionManager>(); | 20 | this.ExtensionManager = serviceProvider.GetService<IExtensionManager>(); |
| 21 | this.LocFiles = locFiles; | 21 | this.LocFiles = locFiles; |
| 22 | this.LibraryFiles = libraryFiles; | 22 | this.LibraryFiles = libraryFiles; |
| 23 | this.FilterCultures = filterCultures; | ||
| 23 | this.PreprocessorVariables = preprocessorVariables; | 24 | this.PreprocessorVariables = preprocessorVariables; |
| 24 | this.SourceFiles = sources; | 25 | this.SourceFiles = sources; |
| 25 | this.OutputPath = outputPath; | 26 | this.OutputPath = outputPath; |
| 26 | this.OutputType = outputType; | 27 | this.OutputType = outputType; |
| 27 | 28 | ||
| 28 | this.CabCachePath = cabCachePath; | 29 | this.CabCachePath = cabCachePath; |
| 29 | this.Cultures = cultures; | ||
| 30 | this.BindFiles = bindFiles; | 30 | this.BindFiles = bindFiles; |
| 31 | this.BindPaths = bindPaths; | 31 | this.BindPaths = bindPaths; |
| 32 | this.IncludeSearchPaths = includeSearchPaths; | 32 | this.IncludeSearchPaths = includeSearchPaths; |
| @@ -43,6 +43,8 @@ namespace WixToolset.Core.CommandLine | |||
| 43 | 43 | ||
| 44 | public IExtensionManager ExtensionManager { get; } | 44 | public IExtensionManager ExtensionManager { get; } |
| 45 | 45 | ||
| 46 | public IEnumerable<string> FilterCultures { get; } | ||
| 47 | |||
| 46 | public IEnumerable<string> IncludeSearchPaths { get; } | 48 | public IEnumerable<string> IncludeSearchPaths { get; } |
| 47 | 49 | ||
| 48 | public IEnumerable<string> LocFiles { get; } | 50 | public IEnumerable<string> LocFiles { get; } |
| @@ -59,8 +61,6 @@ namespace WixToolset.Core.CommandLine | |||
| 59 | 61 | ||
| 60 | public string CabCachePath { get; } | 62 | public string CabCachePath { get; } |
| 61 | 63 | ||
| 62 | public IEnumerable<string> Cultures { get; } | ||
| 63 | |||
| 64 | public bool BindFiles { get; } | 64 | public bool BindFiles { get; } |
| 65 | 65 | ||
| 66 | public IEnumerable<BindPath> BindPaths { get; } | 66 | public IEnumerable<BindPath> BindPaths { get; } |
| @@ -205,6 +205,7 @@ namespace WixToolset.Core.CommandLine | |||
| 205 | { | 205 | { |
| 206 | var resolver = new Resolver(this.ServiceProvider); | 206 | var resolver = new Resolver(this.ServiceProvider); |
| 207 | resolver.BindPaths = this.BindPaths; | 207 | resolver.BindPaths = this.BindPaths; |
| 208 | resolver.FilterCultures = this.FilterCultures; | ||
| 208 | resolver.IntermediateFolder = this.IntermediateFolder; | 209 | resolver.IntermediateFolder = this.IntermediateFolder; |
| 209 | resolver.IntermediateRepresentation = output; | 210 | resolver.IntermediateRepresentation = output; |
| 210 | resolver.Localizations = localizations; | 211 | resolver.Localizations = localizations; |
