Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to generate dependency graph by class only for one project?

If I use:

Architecture -> Generate Dependency Graph -> By Class

it generates the graph for the entire solution.

Is there a way to cause VS to generate the dependency graph only for classes from a certain project?

I tried generating only for a certain project using Architecture Explorer -> Create a new graph document from all the selected nodes (with and without having ctrl pressed) but it only generates either classes with no connection between them or classes connected to namespaces.

Thanks for your help!

like image 691
Răzvan Flavius Panda Avatar asked May 25 '12 10:05

Răzvan Flavius Panda


People also ask

What is dependency graph give an example?

A dependency graph is a data structure formed by a directed graph that describes the dependency of an entity in the system on the other entities of the same system. The underlying structure of a dependency graph is a directed graph where each node points to the node on which it depends.

How do I view project dependencies in Visual Studio?

You can view the project dependencies by selecting Build Dependencies\Project Dependencies from the context menu on a project in the solution explorer.


2 Answers

Try out Resharper 8 (http://www.jetbrains.com/resharper/) it has lot's of features regarding dependency graphs.

like image 55
Kocsis Zoltán Avatar answered Nov 15 '22 09:11

Kocsis Zoltán


unloading the projects that you don't want included appears to work in VS2012.

try in VS2010?

like image 42
Maslow Avatar answered Nov 15 '22 09:11

Maslow