-
Notifications
You must be signed in to change notification settings - Fork 480
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
.NET 6 - System.Drawing.Common is no longer supported on non-Windows systems #929
Comments
See also #910. |
I want to create an SVG from scratch, not render a bitmap from an SVG. Svg.Skia doesn't do that. |
Likewise I think this code should add an .NET 6 TFM to it that does not reference manually:
So then in the end the 6.0 target would be added to For me it's annoying having to delete the osx files manually every time I rebuild my windows forms program so a 6.0 target is a must for me on this dependency of it (because I only want the Svg.dll and Fizzler.dll's copied to the compiled output folder). |
It sounds as if you already have done this locally - you may make a PR in this case. If you only use |
The real issue is the removal of System.Drawing.Common breaks a lot of stuff and backwards compatibility and you have re-implement it using something else. See my attempt to just remove the dependency #931 |
I did try today I have found several issues in that library: https://github.com/dotnet/Microsoft.Maui.Graphics/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+author%3Awieslawsoltes The library is not that hard to use but lacks some features and definitely not as powerful as SkiaSharp. |
That looks cool, perhaps that can be split into Or better yet, have the normal Svg package by itself an ".NET Sdk" that then determines if the program is a Windows Forms or WPF application or not and reference |
The Microsoft.Maui.Graphics is not even close to being ready to use, it's buggy, missing basic features, unreleased and unsupported. Don't get your hopes high, it will take a lot of time until Microsoft.Maui.Graphics is ready maybe even 18 or more months or it can even be canceled. |
Due to the problem of memory non release in Linux, when can It release a new version? |
With .NET 6,
System.Drawing.Common
become a "Windows-only" dependency.See this official Microsoft note about the breaking change. They it's mainly because
libgdiplus
used on Linux systems is "subpar".SVG uses
System.Drawing.Common
, thuslibgdiplus
, so it's having issues with my docker image based onaspnet:6.0-alpine
. Any plans to migrate to one of the recommended alternatives?--
Sidenote: the reason I got into this is because I have an alignment issue under Linux that I do not have under Windows.
The code relies on
amountSvgText.Dx = new SvgUnitCollection { new(SvgUnitType.Pixel, CONSTANT - amountSvgText.Bounds.Width) };
and I believe the culprit islibgdiplus
.The text was updated successfully, but these errors were encountered: