Creating Custom Code Analysis Rule Sets
This topic applies to:
Visual Studio Ultimate | Visual Studio Premium | Visual Studio Professional | Visual Studio Express |
|---|---|---|---|
![]() | ![]() | ![]() | ![]() |
You apply code analysis rules to a managed code project by specifying a rule set that contains one or more rules. The Microsoft standard rule sets provide groups of rules that are organized by function and depth. For example, the Microsoft Basic Design Guidelines Rules and the Microsoft Extended Design Guidelines Rules contain rules that focus on usability and maintainability issues, with added emphasis on naming rules in the Extended rule set.
You can also create a custom rule set that combines two or more standard rule sets or that specifies rules in one or more standard rule sets. You save custom rule sets to a .ruleset file, and you can specify them in multiple code projects.

