NAntGraph leverages GraphViz to do the actual image rendering.

Normally, NAntGraph will find GraphViz automatically, by searching your Program Files directory for any folder named GraphViz (see DotRenderer.FindDotPath() in the source to see how this works).

If this doesn’t work, you’ll need to manually configure NAntGraph as follows:

For the commandline tool, NAntGraph2.exe find the file NAntGraph2.exe.config in the same directory. If it doesn’t exist, create it using notepad but be sure not to give it a .txt extension.

Add the following content:

<?xml version="1.0" encoding="utf-8" ?>
      <add key="dot.exe" 
           value="C:\Program Files\Graphviz2.26.3\bin\dot.exe"/>

Of course, modify the path to point to your actual GraphVis installation.

If you’re using NAntGraphUI.exe the process is the same, but with a different filename - use NAntGraphUI.exe.config instead.


blog comments powered by Disqus