question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

System.Drawing.Common is deprecated on non-Windows platforms

See original GitHub issue

Read and complete the full issue template

Do not randomly delete sections. They are here for a reason.

Do you want to request a feature or report a bug?

  • Bug
  • Feature
  • Question

Did you test against the latest CI build?

Version of ClosedXML 0.95.1

What is the current behavior? https://github.com/dotnet/designs/blob/a15a8c7a324c482c5e38b73e46c2afe56f6bd504/accepted/2021/system-drawing-win-only/system-drawing-win-only.md System.Drawing is officially deprecated everywhere but Windows.

What is the expected behavior or new feature? Either: Port to another crossplatform drawing library Or: Mark corresponding methods (like AdjustContents) with SupportedOSPlatformAttribute(Windows) which requires adding net5+ TFM

Is this a regression from the previous version? no

Reproducibility

n/a

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:12
  • Comments:18 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
0xcedcommented, Feb 4, 2022

I could try to migrate from System.Drawing.Common to SixLabors.ImageSharp but this project seems a bit stalled. I have opened an easy pull request (#1761) to see if this project still has some momentum or not.

2reactions
lazaromenezescommented, Jan 18, 2022

FYI: .Net 6 removed the System.Drawing.Common support for non-Windows systems: https://docs.microsoft.com/en-us/dotnet/core/compatibility/core-libraries/6.0/system-drawing-common-windows-only

Trying the runtime config flag hasn’t been working for us so far.

The suggested solution of installing libgdlplus works fine for our 3.1 environment tho.

Read more comments on GitHub >

github_iconTop Results From Across the Web

System.Drawing.Common only supported on Windows - .NET
Learn about the .NET 6 breaking change where the System.Drawing.Common package is no longer supported on non-Windows operating systems.
Read more >
System.Drawing.Common is deprecated on non-Windows ...
Hello, I work on the .NET Libraries team, and I saw that this library has a lot of usage in the community and...
Read more >
Is it safe to use System.Drawing.Common 4.7.3?
Drawing.Common and I noticed that while version 6 and 7 are not usable on Linux, version 5 is marked as deprecated and versions...
Read more >
System.Drawing.Common replacement for .NET 7
This is problematic for .NET library developers who maintain cross-platform libraries that use System.Drawing.Common because Microsoft's recommended action ...
Read more >
.Net 7 and Docker (System.Drawing deprecated on non- ...
Learn about the .NET 6 breaking change where the System.Drawing.Common package is no longer supported on non-Windows operating systems.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found