There was an error while loading. Please reload this page.
1 parent 590ce0d commit 7628ebdCopy full SHA for 7628ebd
1 file changed
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