Rules Property

MSBuild

The list of rules to run


Namespace: MSBuild.Community.Tasks
Assembly: MSBuild.Community.Tasks (in MSBuild.Community.Tasks.dll)

Syntax

Visual Basic (Declaration)
Public Property Rules As ITaskItem[]
C#
public ITaskItem[] Rules { get; set; }
C++
public property ITaskItem[] Rules sealed  {
    array<ITaskItem>^ get();
    void set(array<ITaskItem>^ value);
}
J#
/** property */
public ITaskItem[] get_Rules();

/** property */
public void set_Rules(ITaskItem[] value);
JScript
public function get Rules() : ITaskItem[]

public function set Rules(value : ITaskItem[]);

Remarks

Rule names should be provided using the format Library#RuleNumber. For example Microsoft.Design#CA1012

Place a single hyphen (-) in front of the rule name to exclude it. For example -Microsoft.Performance#CA1805

See Also

Syntax based on .NET Framework version 2.0.
Documentation version 1.0.0.0.