aboutsummaryrefslogtreecommitdiff
path: root/src/wixcop/CommandLine/ConvertCommand.cs
diff options
context:
space:
mode:
authorRob Mensching <rob@firegiant.com>2019-05-15 16:21:14 -0700
committerRob Mensching <rob@firegiant.com>2019-10-20 01:06:43 -0700
commit70d459c39d1716b2d26ffcbd2c4037d646b9ec37 (patch)
tree2c04b4940d64b99bea85cf00823a66697d344301 /src/wixcop/CommandLine/ConvertCommand.cs
parent14fdc9113bdc7270fb33e06990081988eb099ba9 (diff)
downloadwix-70d459c39d1716b2d26ffcbd2c4037d646b9ec37.tar.gz
wix-70d459c39d1716b2d26ffcbd2c4037d646b9ec37.tar.bz2
wix-70d459c39d1716b2d26ffcbd2c4037d646b9ec37.zip
Extract common converters code to Converters repo and use that instead
Diffstat (limited to 'src/wixcop/CommandLine/ConvertCommand.cs')
-rw-r--r--src/wixcop/CommandLine/ConvertCommand.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/wixcop/CommandLine/ConvertCommand.cs b/src/wixcop/CommandLine/ConvertCommand.cs
index c65652ab..a9a110fe 100644
--- a/src/wixcop/CommandLine/ConvertCommand.cs
+++ b/src/wixcop/CommandLine/ConvertCommand.cs
@@ -6,6 +6,7 @@ namespace WixToolset.Tools.WixCop.CommandLine
6 using System.Collections.Generic; 6 using System.Collections.Generic;
7 using System.IO; 7 using System.IO;
8 using System.Xml; 8 using System.Xml;
9 using WixToolset.Converters;
9 using WixToolset.Extensibility.Data; 10 using WixToolset.Extensibility.Data;
10 using WixToolset.Extensibility.Services; 11 using WixToolset.Extensibility.Services;
11 12
@@ -75,7 +76,7 @@ namespace WixToolset.Tools.WixCop.CommandLine
75 } 76 }
76 77
77 var messaging = this.ServiceProvider.GetService<IMessaging>(); 78 var messaging = this.ServiceProvider.GetService<IMessaging>();
78 var converter = new Converter(messaging, this.IndentationAmount, this.ErrorsAsWarnings, this.IgnoreErrors); 79 var converter = new Wix3Converter(messaging, this.IndentationAmount, this.ErrorsAsWarnings, this.IgnoreErrors);
79 80
80 var errors = this.InspectSubDirectories(converter, Path.GetFullPath(".")); 81 var errors = this.InspectSubDirectories(converter, Path.GetFullPath("."));
81 82
@@ -131,7 +132,7 @@ namespace WixToolset.Tools.WixCop.CommandLine
131 /// </summary> 132 /// </summary>
132 /// <param name="directory">The directory whose sub-directories will be inspected.</param> 133 /// <param name="directory">The directory whose sub-directories will be inspected.</param>
133 /// <returns>The number of errors that were found.</returns> 134 /// <returns>The number of errors that were found.</returns>
134 private int InspectSubDirectories(Converter converter, string directory) 135 private int InspectSubDirectories(Wix3Converter converter, string directory)
135 { 136 {
136 var errors = 0; 137 var errors = 0;
137 138