System.Drawing.Common is deprecated on non-Windows platforms
See original GitHub issueRead 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?
- Yes
- No
- n/a
If you answered
No
, please test with the latest development build first.
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:
- Created 2 years ago
- Reactions:12
- Comments:18 (10 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
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.