Skip to content

[BUG] Microsoft.Msagl.GraphViewerGDI and QuikGraph.MSAGL throw compilation error when included in the same project #91

Description

@AceOubahaTLI

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:

  1. Create a new C# project
  2. Install Quikgraph.MSAGL 2.5.0
  3. Install Microsoft.MSAGL.GraphViewerGDI 1.1.7
  4. 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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions