The type initializer for 'SkiaSharp.SKImageInfo' threw an exception. code example
Example 1: The type initializer for 'SkiaSharp.SKImageInfo' threw an exception.
#If your app is running on Linux you have to install mono because it requires GDI
#Ubuntu 20.04 mono installation
sudo apt install gnupg ca-certificates
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb https://download.mono-project.com/repo/ubuntu stable-focal main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
sudo apt update
sudo apt install mono-devel
Example 2: The type initializer for 'SkiaSharp.SKImageInfo' threw an exception.
#If your app is running on Linux you have to install mono
sudo apt install gnupg ca-certificates
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb https://download.mono-project.com/repo/ubuntu stable-focal main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
sudo apt update
sudo apt install mono-devel