Skip to content

Commit b6bb29f

Browse files
committed
Merge 7628ebd into 590ce0d
2 parents 590ce0d + 7628ebd commit b6bb29f

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

Source/MSBuild.Community.Tasks/FxCop.cs

+14-1
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,15 @@ public ITaskItem[] Rules
187187
{
188188
get { return _rules; }
189189
set { _rules = value; }
190-
}
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; }
191199

192200
private string _analysisReportFileName;
193201

@@ -484,6 +492,11 @@ protected override string GenerateCommandLineCommands()
484492
}
485493
}
486494

495+
if (!string.IsNullOrEmpty(RuleSet))
496+
{
497+
_programArguments.AppendFormat("/ruleset:{0} ", RuleSet);
498+
}
499+
487500
if (IncludeSummaryReport)
488501
{
489502
_programArguments.Append("/s ");

0 commit comments

Comments
 (0)