Add .Net Core 3 support
See original GitHub issueI got a closed source project where i got a wpf app that uses magick.net to load and display images in xaml by loading them in the background and converting to something wpf can display with
var data = default(byte[]); // not actual initialization logic, but simply for showing the datatype
using (var img = new MagickImage(data))
{
source = img.ToBitmapSource();
source.Freeze();
}
When i migrated that project to netcoreapp3.0
, i noticed, that that img.ToBitmapSource();
is not available to me anymore, when using Magick.NET-Q8-AnyCPU
with version 7.11.1
.
I imagine, adding the appropriate preprocessor directive to MagickImage.cs might already be enough to fix my issue.
This fix would add the .net core 3 sdk (preview) as dependency and require the usage of Visual Studio 2019 (preview) or rather the corresponding msbuild version to be installed locally. So i do understand if this isnt going to happen right away.
I am happy to provide further details when required.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:7 (2 by maintainers)
Top GitHub Comments
The
ToBitmap
andToBitmapSource
methods have been moved to new separate libraries calledMagick.NET.SystemDrawing
andMagick.NET.SystemWindowsMedia
. TheMagick.NET.SystemDrawing
library has support fornetstandard20
. But that has not been done for theMagick.NET.SystemWindowsMedia
library. I don’t know which dependency I need to add to make it work. Only targettingnetcoreapp3.0
does not seem to work.I just tried it and used
which worked as expected in a .net core app using