Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
AceOubahaTLI opened this issue Jan 30, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@AceOubahaTLI
Copy link

AceOubahaTLI commented Jan 30, 2025

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.

@AceOubahaTLI AceOubahaTLI added the bug Something isn't working label Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants