Home > Uncategorized > Analyzing projects dependencies using dot.exe and powershell

Analyzing projects dependencies using dot.exe and powershell

When the code projects grow large it is easy to loose control over the dependencies between internal projects. I wrote a powershell script today that sucks out the projects from a solution file along with its references to other projects. This information is used as input to dot.exe (available from GraphViz) which is able to create a beautiful image that displays the dependency graph.

Usage: get-projects-dependencies mysolutionfile.sln dependencygraph.png

The result will look like below when applied to the bling projects solution file.

dependencies

By the way, here is the source code.

Advertisements
Categories: Uncategorized
  1. Anton
    April 21, 2010 at 9:47 am

    Nice, wonder how that would look at some of the projects at work. Have been thinking of doing the same for statemachines implemented with the http://en.wikipedia.org/wiki/State_pattern

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: