SkiaSharp SKImageInfo Azure

When deploying the package to azure and setting the outputting file to pdf the following error occurs.

	Error Content: [System.TypeInitializationException: The type initializer for '? ' threw an exception.
 ---> System.TypeInitializationException: The type initializer for 'SkiaSharp.SKImageInfo' threw an exception.
 ---> System.DllNotFoundException: Unable to load shared library 'libSkiaSharp' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: liblibSkiaSharp: cannot open shared object file: No such file or directory
   at SkiaSharp.SkiaApi.sk_colortype_get_default_8888()
   at SkiaSharp.SKImageInfo..cctor()
   --- End of inner exception stack trace ---
   at SkiaSharp.SKBitmap..ctor(Int32 width, Int32 height, Boolean isOpaque)
   at ? ..cctor()
   --- End of inner exception stack trace ---

Is there a preferred way to deploy to azure as this does not happen on the local installation?

@nross It seems SkiaSharp native assets are not deployed properly. Please read the following article and make sure SkiaSharpnative assets are deployed properly.

Also if your deployment target is Linux, then you should add reference to SkiaSharp.NativeAssets.Linux.NoDependencies.
Hope this helps.

Hi Alexey thank you,

It fixed the issue