concept FxCop in category .net

appears as: FxCop
Continuous Integration in .NET

This is an excerpt from Manning's book Continuous Integration in .NET.

The first, FxCop (see figure 1.7), a free tool from Microsoft, analyzes code and reports possible issues with localization, security, design, and performance. The tool is targeted at developers creating components for other developers to use, but application teams are finding FxCop a useful part of their CI process.

Figure 1.7. FxCop reports problems in code that can be issues with design, performance, security, or localization.
Listing 8.1. FxCop run from the command line using a manipulated project file

8.1. Analyzing object code with FxCop

FxCop is a free Microsoft tool for code analysis. It examines compiled .NET assemblies for things like performance, naming conventions, library design, globalization, and security.

FxCop started as a standalone program that enforced the rules from Design Guidelines for Class Library Developers (http://msdn.microsoft.com/en-us/library/czefa0ke(VS.71).aspx), a document that contains good coding practices for developers writing .NET code. FxCop was incorporated into Visual Studio Team System 2008 and Visual Studio Premium 2010 as Code Analysis. The good news is, it’s also still available as a standalone program, and it’s helpful as part of CI. Let’s look at FxCop in action.