Generating dgml files from command line
Is there a command line tool to generate the dgml file from a list of dlls? I have tried graphcmd.开发者_如何学编程exe, this only further simplifies an already generated dgml file. Are there any command line options in the visual studio ultimate through which we can achieve this?
The reason that i ask this is, i would like to generate the dgml files as part of the continuous integration, and further process each file to get the integrated dependency graphs of all individual components involved in the system.
GraphCmd can crack assemblies and produce DGML output. But it cannot produce a complete top down dependency graph with groups by namespace and class and so on. But if you use the Architecture Explorer "Select Files...", point at an assembly, select the types and members that you are interested in, then click "Save Query" in the vertical AE toolbar on the left, then open the resulting .dgql file you will see how it works. Then you can pass this query to GraphCmd using "-query" argument.
Unfortunately this isn't possible in VS 2010. You can only generate dgml diagrams from inside VS. If you're looking to manage your dependencies as part of your build you may want to look at VS 2010 layer validation.
精彩评论