Open Akash26Arul opened 9 months ago
Hi team,
Any update on this?
Regards, Akash.
I was able to run your code after adding SkiaSharp.Views.Blazor package. https://www.nuget.org/packages/SkiaSharp.Views.Blazor/2.88.7. I'm using WASM .NET 8.0 Visual Studio 2022 version 17.9.1.
Description
System.DllNotFoundException: libSkiaSharp exception is thrown while using SkiaSharp library in Blazor WASM .NET 8.0 and this issue doesn't occur in Blazor WASM .NET 6.0.
Stack trace:
System.TypeInitializationException: The type initializer for 'SkiaSharp.SKImageInfo' threw an exception. ---> System.DllNotFoundException: libSkiaSharp at SkiaSharp.SKImageInfo..cctor()
Note: When trying the same approach in Blazor WASM .NET 6.0, there is no issues.
Code
Expected Behavior
Should draw the text and save as png.
Actual Behavior
Throws the above mentioned exception (System.DllNotFoundException: libSkiaSharp)
Version of SkiaSharp
2.88.6
Last Known Good Version of SkiaSharp
None
IDE / Editor
Visual Studio (Windows)
Platform / Operating System
Windows
Platform / Operating System Version
.NET 8.0
ASP.NET Core .NET 8.0 : Working fine
Blazor server side .NET 8.0 : Working fine
Blazor client side (WASM) .NET 8.0 : Facing Lib SkiaSharp issue