diff options
author | Sean Hall <r.sean.hall@gmail.com> | 2020-04-02 21:20:22 +1000 |
---|---|---|
committer | Sean Hall <r.sean.hall@gmail.com> | 2020-04-02 21:20:22 +1000 |
commit | 56ab717c8e1dc4c30b4350a384e2d98982983bb3 (patch) | |
tree | 9e3902c292af48f7dbc5b10e14c809103aba51d0 /src/wixcop | |
parent | 7381929a536ca080a22deabe2a72682e964f93af (diff) | |
download | wix-56ab717c8e1dc4c30b4350a384e2d98982983bb3.tar.gz wix-56ab717c8e1dc4c30b4350a384e2d98982983bb3.tar.bz2 wix-56ab717c8e1dc4c30b4350a384e2d98982983bb3.zip |
Address breaking changes.
Diffstat (limited to 'src/wixcop')
-rw-r--r-- | src/wixcop/CommandLine/ConvertCommand.cs | 4 | ||||
-rw-r--r-- | src/wixcop/CommandLine/WixCopCommandLineParser.cs | 4 | ||||
-rw-r--r-- | src/wixcop/Program.cs | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/src/wixcop/CommandLine/ConvertCommand.cs b/src/wixcop/CommandLine/ConvertCommand.cs index a9a110fe..8b01faa7 100644 --- a/src/wixcop/CommandLine/ConvertCommand.cs +++ b/src/wixcop/CommandLine/ConvertCommand.cs | |||
@@ -14,7 +14,7 @@ namespace WixToolset.Tools.WixCop.CommandLine | |||
14 | { | 14 | { |
15 | private const string SettingsFileDefault = "wixcop.settings.xml"; | 15 | private const string SettingsFileDefault = "wixcop.settings.xml"; |
16 | 16 | ||
17 | public ConvertCommand(IServiceProvider serviceProvider, bool fixErrors, int indentationAmount, List<string> searchPatterns, bool subDirectories, string settingsFile1, string settingsFile2) | 17 | public ConvertCommand(IWixToolsetServiceProvider serviceProvider, bool fixErrors, int indentationAmount, List<string> searchPatterns, bool subDirectories, string settingsFile1, string settingsFile2) |
18 | { | 18 | { |
19 | this.ErrorsAsWarnings = new HashSet<string>(); | 19 | this.ErrorsAsWarnings = new HashSet<string>(); |
20 | this.ExemptFiles = new HashSet<string>(); | 20 | this.ExemptFiles = new HashSet<string>(); |
@@ -43,7 +43,7 @@ namespace WixToolset.Tools.WixCop.CommandLine | |||
43 | 43 | ||
44 | private List<string> SearchPatterns { get; } | 44 | private List<string> SearchPatterns { get; } |
45 | 45 | ||
46 | private IServiceProvider ServiceProvider { get; } | 46 | private IWixToolsetServiceProvider ServiceProvider { get; } |
47 | 47 | ||
48 | private string SettingsFile1 { get; } | 48 | private string SettingsFile1 { get; } |
49 | 49 | ||
diff --git a/src/wixcop/CommandLine/WixCopCommandLineParser.cs b/src/wixcop/CommandLine/WixCopCommandLineParser.cs index 73247dae..3d34a649 100644 --- a/src/wixcop/CommandLine/WixCopCommandLineParser.cs +++ b/src/wixcop/CommandLine/WixCopCommandLineParser.cs | |||
@@ -14,14 +14,14 @@ namespace WixToolset.Tools.WixCop.CommandLine | |||
14 | private bool fixErrors; | 14 | private bool fixErrors; |
15 | private int indentationAmount; | 15 | private int indentationAmount; |
16 | private readonly List<string> searchPatterns; | 16 | private readonly List<string> searchPatterns; |
17 | private readonly IServiceProvider serviceProvider; | 17 | private readonly IWixToolsetServiceProvider serviceProvider; |
18 | private string settingsFile1; | 18 | private string settingsFile1; |
19 | private string settingsFile2; | 19 | private string settingsFile2; |
20 | private bool showHelp; | 20 | private bool showHelp; |
21 | private bool showLogo; | 21 | private bool showLogo; |
22 | private bool subDirectories; | 22 | private bool subDirectories; |
23 | 23 | ||
24 | public WixCopCommandLineParser(IServiceProvider serviceProvider) | 24 | public WixCopCommandLineParser(IWixToolsetServiceProvider serviceProvider) |
25 | { | 25 | { |
26 | this.serviceProvider = serviceProvider; | 26 | this.serviceProvider = serviceProvider; |
27 | 27 | ||
diff --git a/src/wixcop/Program.cs b/src/wixcop/Program.cs index 8e9534f6..e2174272 100644 --- a/src/wixcop/Program.cs +++ b/src/wixcop/Program.cs | |||
@@ -24,7 +24,7 @@ namespace WixToolset.Tools.WixCop | |||
24 | [STAThread] | 24 | [STAThread] |
25 | public static int Main(string[] args) | 25 | public static int Main(string[] args) |
26 | { | 26 | { |
27 | var serviceProvider = new WixToolsetServiceProvider(); | 27 | var serviceProvider = WixToolsetServiceProviderFactory.CreateServiceProvider(); |
28 | var listener = new ConsoleMessageListener("WXCP", "wixcop.exe"); | 28 | var listener = new ConsoleMessageListener("WXCP", "wixcop.exe"); |
29 | 29 | ||
30 | serviceProvider.AddService<IMessageListener>((x, y) => listener); | 30 | serviceProvider.AddService<IMessageListener>((x, y) => listener); |
@@ -40,7 +40,7 @@ namespace WixToolset.Tools.WixCop | |||
40 | /// <param name="serviceProvider">Service provider to use throughout this execution.</param> | 40 | /// <param name="serviceProvider">Service provider to use throughout this execution.</param> |
41 | /// <param name="args">The commandline arguments.</param> | 41 | /// <param name="args">The commandline arguments.</param> |
42 | /// <returns>The number of errors that were found.</returns> | 42 | /// <returns>The number of errors that were found.</returns> |
43 | public int Run(IServiceProvider serviceProvider, string[] args) | 43 | public int Run(IWixToolsetServiceProvider serviceProvider, string[] args) |
44 | { | 44 | { |
45 | try | 45 | try |
46 | { | 46 | { |