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 looking for easier way.
Asked
Active
Viewed 3,103 times
4 Answers
1
You can right click on your project and select View Class Diagram. Is that what looking for?

sarvesh
- 2,743
- 1
- 20
- 30
1
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.

Claus Jørgensen
- 25,882
- 9
- 87
- 150
1
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,
Similar question

Community
- 1
- 1

Devendra D. Chavan
- 8,871
- 4
- 31
- 35
-
That's not a programmatically way, but I think I will able to use it via VS SDK. Thanks a lot. – Silx Apr 05 '11 at 08:12
0
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:

Patrick from NDepend team
- 13,237
- 6
- 61
- 92