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,
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:
精彩评论