We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 590ce0d + 7628ebd commit b6bb29fCopy full SHA for b6bb29f
Source/MSBuild.Community.Tasks/FxCop.cs
@@ -187,7 +187,15 @@ public ITaskItem[] Rules
187
{
188
get { return _rules; }
189
set { _rules = value; }
190
- }
+ }
191
+
192
+ /// <summary>
193
+ /// Gets or sets the rule set.
194
+ /// </summary>
195
+ /// <value>
196
+ /// The rule set.
197
+ /// </value>
198
+ public string RuleSet { get; set; }
199
200
private string _analysisReportFileName;
201
@@ -484,6 +492,11 @@ protected override string GenerateCommandLineCommands()
484
492
}
485
493
486
494
495
+ if (!string.IsNullOrEmpty(RuleSet))
496
+ {
497
+ _programArguments.AppendFormat("/ruleset:{0} ", RuleSet);
498
499
487
500
if (IncludeSummaryReport)
488
501
489
502
_programArguments.Append("/s ");
0 commit comments