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
When trying to run a Wasi Console app that depends on SkiaSharp. It builds the single-file wasm just fine. I added the nuget package for the NativeAssets.WebAssembly. But when attempting to run, it throws:
"System.TypeInitializationException: TypeInitialization_Type, SkiaSharp.SKImageInfo --- System.DllNotFoundException: libSkiaSharp at SkiaSharp.SKImageInfo..cctor()
The NativeAssets has build targets for Blazor, but seems to be missing them for Wasi Wasm apps.
I'm on .NET 9 preview 6. Is there some workaround or something I'm missing? I attached a small repro project. I included the wasm file in case that's useful. If you're not familiar with wasi or wasitime, see in the instructions in the readme. WasiSkiaSharpRepro.zip
Hmm! Good question. I was assuming the issue for me was because the NativeAssets package didn't include targets for wasi wasm. But maybe it's a larger issue with SkiaSharp in general?
Description
When trying to run a Wasi Console app that depends on SkiaSharp. It builds the single-file wasm just fine. I added the nuget package for the NativeAssets.WebAssembly. But when attempting to run, it throws:
"System.TypeInitializationException: TypeInitialization_Type, SkiaSharp.SKImageInfo --- System.DllNotFoundException: libSkiaSharp at SkiaSharp.SKImageInfo..cctor()
The NativeAssets has build targets for Blazor, but seems to be missing them for Wasi Wasm apps.
I'm on .NET 9 preview 6. Is there some workaround or something I'm missing? I attached a small repro project. I included the wasm file in case that's useful. If you're not familiar with wasi or wasitime, see in the instructions in the readme.
WasiSkiaSharpRepro.zip
Code
Version of SkiaSharp
2.88.3 (Current)
Last Known Good Version of SkiaSharp
2.88.2 (Previous)
IDE / Editor
Visual Studio (Windows)
Platform / Operating System
Other (Please indicate in the description)
Platform / Operating System Version
Wasi Wasm
Code of Conduct
The text was updated successfully, but these errors were encountered: