开发者

I need an analyzing tool for C#

开发者 https://www.devze.com 2023-03-08 11:34 出处:网络
I have a big legacy code in C#. I need to analyze it in order to recommend the best way to build some new features in the program.

I have a big legacy code in C#.

I need to analyze it in order to recommend the best way to build some new features in the program.

Is there any tool which enables fast analyzing, and can show the class associations in a clear way which helps me get in to this old logic as fast as possible?

Any experience stories or recommendation on how get this best done would be appreciated.开发者_开发技巧

Thanks!


There are static analysis tools that can help with such a codebase.

Visual Studio 2010 architecture edition comes with the class diagram designer, and will generate the class diagram and dependancies for you (Architecture->Generate Dependency Graph->Class Diagram).

There is also the commercial nDepend.


I would recommend you to use NDepend.

Take a look at this list, it includes short description of each tool.


I highly recommend you to take a look at Visual Studio 2010 Architecture Explorer and Dependency Graphs which provide you with great capabilities to analyze legacy codes.


To complete the O.D answer, NDepend is a tool especially dedicated to analyze and master large .NET code bases (legacy or not).

The tool proposes fast analysis, dependency graph and dependency matrix, code comparison, code ruling facilities, VS full integration and more features. You can try it now on your code since a free Trial version is proposed.

Since you seem interested especially by exploring dependencies like class associations, here is an introduction to start with dependency graph.

I need an analyzing tool for C#

Here is an introduction to start with dependency matrix (better suited than graph to explore dependencies in a large piece of code).

I need an analyzing tool for C#


IMHO the best you can get is Resharper - a combination of using Type Hierarchy, Value Tracking and Call Tracking is the best way to navigate an old warship legacy codebase and get a grasp on it.


Try running it through Code Perspective - It provides real-time visualization of your application. I found it helped a lot understand how a large legacy code base of mine worked.

https://codeperspective.com/

0

精彩评论

暂无评论...
验证码 换一张
取 消