You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a Wasi Console App (.NET 9, preview 6) which compiles to a single .wasm file. I can add nuget references to SkiaSharp and the SkiaSharp.NativeAssets,WebAssembly and it appears to compile file. But when I try to call Skia methods from my code, I get a DllNotFoundException for libSkiaSharp.
"System.TypeInitializationException: TypeInitialization_Type, SkiaSharp.SKImageInfo --- System.DllNotFoundException: libSkiaSharp at SkiaSharp.SKImageInfo..cctor()
SkiaSharp is supported in Blazor Wasm so I assumed it would work in Wasi Wasm. Is there some extra build step I need to add to get the native assets statically linked into my wasm file?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a Wasi Console App (.NET 9, preview 6) which compiles to a single .wasm file. I can add nuget references to SkiaSharp and the SkiaSharp.NativeAssets,WebAssembly and it appears to compile file. But when I try to call Skia methods from my code, I get a DllNotFoundException for libSkiaSharp.
"System.TypeInitializationException: TypeInitialization_Type, SkiaSharp.SKImageInfo --- System.DllNotFoundException: libSkiaSharp at SkiaSharp.SKImageInfo..cctor()
SkiaSharp is supported in Blazor Wasm so I assumed it would work in Wasi Wasm. Is there some extra build step I need to add to get the native assets statically linked into my wasm file?
Beta Was this translation helpful? Give feedback.
All reactions