Visual Studio integration

How to view the DGML files and replay any warnings.

Installing the DGML viewer

Visual Studio

Installing the DGML viewer allows any subsequent double clicking of a file with extension .dgml within File Explorer to be loaded by Visual Studio:

  1. Run Visual Studio Installer.
  2. Click the Modify button.
  3. Select the Individual components tab.
  4. Scroll down to the Code tools section.
  5. Check DGML editor.

Moving DGML files

As can be surmised from its name DGML, Directed Graph Markup Language, is an XML based file format. The DGML file contains links to source code which may be invalidated when it is moved. Typically the environment variables contained in Path elements will need to be modified:

DirectedGraph
├ Paths
│ ├ Path Value="C:\...
│ ├ Path Value="C:\...

These links are used to navigate to the source code from the DGML viewer within Visual Studio and may also be used by the DeepEnds tools that take a DGML file as input.

Replaying warnings in Visual Studio

A tool like ReportRedundant reads a DGML file and produces output that Visual Studio can interpret:

  1. Redirect the tool output to a file, e.g. C:\warnings.txt.
  2. From the Tools menu select External Tools... to launch the External Tools dialogue box.
  3. Press the Add button.
  4. For Title enter DeepEnds.
  5. For Command enter cmd.exe.
  6. For Arguments enter /c type C:\warnings.txt.
  7. Check Use Output window.
  8. Click Apply.
  9. From the Tools menu select DeepEnds to replay the file.
  10. Double click on a line in the Output window which begins with a filename to jump to that file.