ArticleDirectory
Reprinted from: http://editblog.csdn.net/msdncolumn/archive/2005/05/26/3702.aspx
Fxcop
Fxcop is a static analysis tool that manages AnalysisCodeProgramSet and report information about the set. Fxcop indicates the inspection performed as a rule during the analysis. A rule is a managed code that analyzes an assembly and returns messages about its findings. Rule messages Identify any related programming and design issues and, if possible, provide information about how to fix goals.
IDE Integration
To enable developers to naturally use analysis tools, developers can choose run fxcop on the project's property pages, as shown in 3.
Figure 3 enable fxcop
For additional options that include or exclude rules and use them as warnings or errors, you can also find them in property pages, as shown in figure 4.
Figure 4 fxcop rules
Once fxcop is enabled, fxcop reports a conflict in the error list during the generation process, as shown in Figure 5.
Figure 5 fxcop rule conflict
Error List provides information and suggestions on Rule conflicts, so that you can correct errors. You only need to double-click rule conflict in the error list to easily locate the code line that violates the rule.