简体   繁体   English

为ASP.Net寻求代码分析工具

[英]Seeking a Code Analysis Tool for ASP.Net

I've inherited a rather complex AsP.Net 3.5 web application derived from Several DLLs. 我继承了从几个DLL派生的相当复杂的AsP.Net 3.5 Web应用程序。 I've used .Net Reflector to examine the DLL contents. 我使用.Net Reflector来检查DLL内容。 However, I am looking for a code analysis tool that might help identify key class files, show how the application makes database calls (it's not obvious from the codebase), and generally suggests ways to improve the codebase. 但是,我正在寻找一种代码分析工具,可以帮助识别关键类文件,显示应用程序如何进行数据库调用(代码库中并不明显),并且通常会建议改进代码库的方法。

Does such a (free?) tool exist? 这样的(免费?)工具是否存在?

Take a look at NDepend (no, it's not free). 看看NDepend (不,它不是免费的)。 It might not do everything you want, but it's a great code analysis tool. 它可能没有你想要的一切,但它是一个伟大的代码分析工具。

I like AQTime from http://www.automatedqa.com/ for this. 我喜欢http://www.automatedqa.com/的 AQTime。 There's a free trial. 有一个免费试用版。 The architecture tools in Visual Studio 2010 Ultimate also allow you to generate graphs from assemblies. Visual Studio 2010 Ultimate中的体系结构工具还允许您从程序集生成图形。

Edit: You can also right-click on any method in VS 2010 and select Generate Sequence Diagram ... which is very helpful sometimes. 编辑:您还可以右键单击VS 2010中的任何方法,然后选择生成序列图...这有时非常有用。

how come you use reflector to examine the DLL's rather than visual studio? 你怎么用反射器来检查DLL而不是视觉工作室?

There's a reflector plugin to decompile the DLL's back to projects: FileDisassembler Stepping thru the code in the VS debugger is the best code analysis tool, otherwise possibly even Rd-Gate Perf Profiler to record call stacks over time. 有一个反射器插件可以将DLL反编译回项目: FileDisassembler通过VS调试器中的代码步进是最好的代码分析工具,否则甚至可能使用Rd-Gate Perf Profiler来记录调用堆栈。

+1 for the architecture tools in Visual Studio 2010 Visual Studio 2010中的体系结构工具+1

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM