重构工具FxCop

改善软件开发质量的工具--微软FxCop
FxCop是为了帮助开发 .NET Framework类库提供的工具软件,它可以帮助我们检查分析现有的.NET托管程序,在设计,本地化,性能和安全方面的问题.FxCop分析的依据是微软.NET设计指南.

昨天我使用FxCop分析我的一个程序,有很多不规范的地方,重构的原则就是小步,持续进化.微软.NET设计指南中有些规则也许你并不赞同,这也正常,但只要能发现了一些好规则,能在以后编程中使用,FxCop就很有价值了,别轻易下结论.

古人常讲:闻过则喜.



FxCop is an application that analyzes managed code assemblies (code that targets the .NET Framework common language runtime) and reports information about the assemblies, such as possible design, localization, performance, and security improvements. Many of the issues concern violations of the programming and design rules set forth in the Microsoft® .NET Framework Design Guidelines, which are Microsoft's guidelines for writing robust and easily maintainable code using the .NET Framework.

FxCop is intended for class library developers; however, anyone creating applications that should conform to .NET Framework best practices will benefit. FxCop is also useful as an educational tool for those who are new to the .NET Framework or are unfamiliar with the .NET Framework Design Guidelines.

FxCop is designed to be fully integrated into the software development cycle and is distributed as both a fully featured application with a graphical user interface (FxCop.exe) for interactive work, and a command-line tool (FxCopCmd.exe) suitable for use as part of automated build processes or integrated with Microsoft Visual Studio® .NET as an external tool.

Visit the FxCop Web site for support, updated documentation, and new rule topics.

posted on 2005-04-14 17:45  朴笛  阅读(1799)  评论(1编辑  收藏  举报