We help IT Professionals succeed at work.

Displaying dependencies for a project/application

JRockFL used Ask the Experts™
I have a solution with 22 projects and I wanted to know if there was a way to easily generate some documentation, mapping, chart, etc of the dependencies for certain applications.

For example, I have a data access assembly. CompanyName.Data
I believe 3 or 4 other applications in the solution have a reference to this assembly.

I wanted a way to determine that and possible create a diagram.
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Meir RivkinFull stack Software Engineer
you can open the .proj file using XElement.Load and use linq to get all project references:

Dim root = XElement.Load("<project_file_path>")
Dim ns = root.GetDefaultNamespace()
Dim refs = root.Element(ns+"ItemGroup").Elements().[Select](Function(n) n.Attribute("Include").Value)

Open in new window

Top Expert 2011
There is an option available to generate Dependency Graphs on VS Ultimate:

How to: Generate Dependency Graphs for .NET Code