BT

David M. Kean Reveals Microsoft's FXCop Ruleset

| by Jonathan Allen Follow 635 Followers on Aug 10, 2007. Estimated reading time: less than one minute |

FXCop, also known as Visual Studio Code Analysis, is a tool that examines compiled .NET applications for design, performance, and security issues. Based on the .NET Framework Guidelines, it not only helps catch mistakes but can also serve as a teaching tool.

While FXCop does offer a lot of analysis rules, not all of them are applicable to a given project. David Kean has revealed the minimum set of rules used by the Developer Division at Microsoft. David writes,

There are two rule sets; the first, Public Rule Set, is for assemblies that design for public consumption. That is, assemblies that are designed to have user take a reference to them in their own projects (such as System.Core.dll). The second, Non-Public Rule Set, is for assemblies are not designed to be consumed by users (such as FxCopCmd.exe).

A stand-alone version of FXCop is available free from GotDotNet. You can also get it with an expanded rule set as part of Visual Studio Team Edition for Software Developers.

Rate this Article

Adoption Stage
Style

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Tell us what you think

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread
Community comments

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Discuss
BT