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

ColorConverter conflict with System.Drawing #257

Open
Marro64 opened this issue Jan 9, 2025 · 1 comment
Open

ColorConverter conflict with System.Drawing #257

Marro64 opened this issue Jan 9, 2025 · 1 comment

Comments

@Marro64
Copy link

Marro64 commented Jan 9, 2025

Using System.Drawing.ColorConverter in a .NET Framework app while Svg.Skia is installed results in the following error:

The type 'ColorConverter' exists in both 'Svg.Custom, Version=2.0.0.4, Culture=neutral, PublicKeyToken=dafe96fe6c845a74' and 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'

I have not been able to find any workaround which does not result in that error.

Reproduction steps:

  1. Create a new solution and project in Visual Studio using the Console App (.NET Framework) preset (It has to be a .NET Framework app, else the error doesn't happen)
  2. Write some code which includes the line var colorConverter = new ColorConverter();
  3. Verify that it compiles
  4. Install Svg.Skia via NuGet
  5. Observe the error
@wieslawsoltes
Copy link
Owner

I do not support System.Drawing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants