Skiasharp.dll


#1

Hello.
I’m using a linux distro called Elementary, which I think is Ubuntu-based.
Whenever I try to run aspose.net with vscode, it shows me this error:

Exception has occurred: CLR/System.TypeInitializationException
An exception of type ‘System.TypeInitializationException’ occurred in Aspose.Words.dll but was not handled in user code: 'The type initializer for ‘ ’ threw an exception.’
Inner exceptions found, see $exception in variables window for more details.
Innermost exception System.DllNotFoundException : Unable to load DLL ‘libSkiaSharp’: The specified module or one of its dependencies could not be found.
(Exception from HRESULT: 0x8007007E)
at SkiaSharp.SkiaApi.sk_colortype_get_default_8888()
at SkiaSharp.SKImageInfo…cctor()

How do I solve this issue?

I have Aspose 19.10 installed.


#2

@jonroosevelt,

If Aspose.Words for .NET Standard is intended to be used in Linux environment, an additional NuGet package should be referenced to make it work correctly with graphics: SkiaSharp.NativeAssets.Linux for Ubuntu (it also should work on most Debian-based Linux distributions) or Goelze.SkiaSharp.NativeAssets.AlpineLinux for Alpine Linux. Hope, this helps.