Verified by coding standard .NET FxCop

FxCop description:

    FxCop is a code analysis tool that checks managed code assembly in accordance with the design specifications of Microsoft .NET Framework. It uses a rule-based engine, to check out the parts of your code, sub-standard; you can also customize your own rules added to the engine.

    There is also a very popular code detection tool called StyleCop. We chose to use FxCop for two reasons, first StyleCop VB.Net do not support, but we do use VB.Net backend development. The second is FxCop has a very strong ability to customize rules engine, this capability is not as good as StyleCop FxCop.

FxCop use:

   1, download FxCop

    The latest version is FxCop 10.0. I was using FxCop 1.36 version. FxCop 10.0 can go to Microsoft's official website to download. FxCop 1.36 can go to bed and wait for you on the download. Microsoft's download link 1.36 This version seems ineffective.

   2, the installation: Slightly

   3, run interface:

1) Open the FxCop program, click the "Project" | "Add Targets" command, add the assembly to be inspected, you can add more.
2) Open the FxCop program, click the "Project" | "Add Rules" command to add custom rules, you can add more.
3) Click "Analyze" button on the toolbar, FxCop will automatically perform detection, testing has been completed, the results will appear in the list on the right. Click on a list item, FxCop below the details of the results are displayed. As shown on FIG.

Here are the use of Microsoft's own rules, you can also customize the rules, see the next section.

http://www.cnblogs.com/zhuqil/archive/2010/12/07/FxCop.html
 
 
 

Reproduced in: https: //www.cnblogs.com/zhangchenliang/archive/2012/07/01/2571531.html

Guess you like

Origin blog.csdn.net/weixin_34082789/article/details/93494892