Generate graphs of your Visual Studio project dependencies.

VS Graph is a simple tool for graphically depicting the structure of your Visual Studio solution, showing you the relationships between projects and the assemblies on which they depend.

VSGraph can help you understand a new solution, by generating a simple diagram showing all of the projects in the dependencies. It can also help you troubleshoot by making it easier to see whether all your projects are configured in the same manner.

VSGraph is designed for easy integration into your continuous integration system so that you always have an up to date diagram documenting in your solution structure.


VSGraph is a commandline tool that reads in your solution (.sln) files and generates a dependency graph.

vsgraph <solution> [<solution>] [-o] [--option]

Here is a summary of the options available in the current release. To see the parameters available in your version, just run vsgraph.exe with no parameters.

Long form Short form Description
–font -f Font to use for labels.
–help -h Display help.
–output -o Output image file.
–dot-file -df Save Dot script to this file.
–dots-per-inch -dpi Dots per inch for rendering.
–merge-edges -me Merge dependency edges.
–remove-transitive-dependencies -rtd Simplify the graph by removing transitive dependencies.
–hide-assemblies -ha Specify assemblies to hide by wildcard

You can use either the long or short form of each option. One useful approach is to use the long form when writing a batch file (for clarity) but the short form to save time when working directly at the console prompt.

If you have multiple related solutions, you can list all the solution files on the same commandline to see all on the same graph.


VSGraph requires .NET 4.0 and GraphViz to be installed.