开发者

Project/solution class inheritance tree and dependency graph

开发者 https://www.devze.com 2023-02-21 22:14 出处:网络
Is there any way to get inheritance tree and/or class dependency graph for the whole Visual Studio project/solution from code? I know that it\'s possible to iterate through all classes and check keywo

Is there any way to get inheritance tree and/or class dependency graph for the whole Visual Studio project/solution from code? I know that it's possible to iterate through all classes and check keywords but I'm lo开发者_Go百科oking for easier way.


There is a Dependency graph feature in Visual Studio 2010. It is a new architecture tool available in VS2010.

The generated graph looks something like this,

Project/solution class inheritance tree and dependency graph

Similar question

  • Dependency graph of Visual Studio projects


You can right click on your project and select View Class Diagram. Is that what looking for?


Visual Studio 2010 Ultimate can do this, using the Architecture functionality. In Professional/Express you can generate a class-diagram, but that's probably not what you want.


You can also used the tool NDepend to get a custom inheritance graph over a VS project, a VS solution or even multiple VS solutions. The graph would look like that:

Project/solution class inheritance tree and dependency graph

0

精彩评论

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