System.TypeInitializationException when using SkiaSharp in net9.0-browserwasm #18994
Labels
difficulty/tbd
Categorizes an issue for which the difficulty level needs to be defined.
kind/bug
Something isn't working
triage/needs-information
Indicates an issue needs more information in order to work on it.
triage/untriaged
Indicates an issue requires triaging or verification
Current behavior
Platform: net9.0 wasm
Error
System.TypeInitializationException: The type initializer for 'SkiaSharp.SKFontStyle' threw an exception.
---> System.DllNotFoundException: libSkiaSharp
at SkiaSharp.SKFontStyle..ctor(Int32 weight, Int32 width, SKFontStyleSlant slant)
at SkiaSharp.SKFontStyle..ctor(SKFontStyleWeight weight, SKFontStyleWidth width, SKFontStyleSlant slant)
at SkiaSharp.SKFontStyle.SKFontStyleStatic..ctor(SKFontStyleWeight weight, SKFontStyleWidth width, SKFontStyleSlant slant)
at SkiaSharp.SKFontStyle..cctor()
--- End of inner exception stack trace ---
Expected behavior
Required UI:
How to reproduce it (as minimally and precisely as possible)
Code:
Workaround
No response
Works on UWP/WinUI
None
Environment
No response
NuGet package version(s)
No response
Affected platforms
WebAssembly
IDE
Visual Studio 2022
IDE version
No response
Relevant plugins
No response
Anything else we need to know?
No response
The text was updated successfully, but these errors were encountered: