QuikGraph
QuikGraph copied to clipboard
[BUG] Microsoft.Msagl.GraphViewerGDI and QuikGraph.MSAGL throw compilation error when included in the same project
Describe the bug With the latest version of both (Quikgraph.MSAGL 2.5.0 and Microsoft.Msagl.GraphViewerGDI 1.1.7), I am running into the following issue:
The type 'SvgGraphWriter' exists in both 'AutomaticGraphLayout.Drawing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=6baa2c1345e83b6e' and 'Microsoft.Msagl.Drawing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=6baa2c1345e83b6e'
It looks like QuikGraph is using the AutomaticGraphLayout name, whereas MSAGL is using the Microsoft.Msagl name.
To Reproduce Steps to reproduce the behavior:
- Create a new C# project
- Install Quikgraph.MSAGL 2.5.0
- Install Microsoft.MSAGL.GraphViewerGDI 1.1.7
- Create a new C# file containing the following:
using Microsoft.Msagl.Drawing;
public class TestClass
{
public TestClass()
{
SvgGraphWriter.Write(null, @"C:\tmp\example.svg", null, null, 0);
}
}
Expected behavior Using QuikGraph.MSAGL and MSAGL together results in successful compilation.