How do I get a diagram of the dependencies between

2020-07-09 06:56发布

I have a fairly complex application which has been broken up into multiple components. Each component has a solution file which contains a bunch of projects. So I like to think of this as a component has multiple projects/dlls in it. There is also a "common" component. All the other components depend on "common". So a compile goes like this: "nant component1.compile" will compile "common" and then compile component1 since component1 depends on "common". Over time "common" has become quite big. I'm pretty sure it can be split into a few smaller components. Then components need to depend only on some of these smaller, broken up "common". This would hopefully cut down on compile time for the different components.

So question: I'd like to visualise the dependency between all the different projects in the application while also tagging which component the project belongs to. How would you do this?

8条回答
再贱就再见
2楼-- · 2020-07-09 07:37

If you are OK with assembly level information then you should look at Graph add-in to a popular tool Reflector. It provides assembly & class level dependency graph.

查看更多
做个烂人
3楼-- · 2020-07-09 07:43

The latest Resharper version is also capable of creating the reference diagramm.

https://www.jetbrains.com/help/resharper/Architecture__Project_Dependencies_Exploration.html#

查看更多
登录 后发表回答