.NET Standard Assembly Limitations
Leave feedback
There are a couple of additional dependencies that should be installed when running on Linux:
Windows Fonts - because of the lack of Windows fonts in Linux fonts used in documents are substituted with available fonts, this might lead to inaccurate document layout when rendering the document to PNG, JPG, and PDF.
SkiaSharp Native Assets - SkiaSharp.NativeAssets.Linux.NoDependencies 2.80.2 or higher
System.Drawing dependencies -
libgdiplus
6.0.1 or higherWarningYou can install the latest version oflibgdiplus
by adding the Mono repository to your system. See more at https://www.mono-project.com/download/stable/#download-lin.
To install packages on Debian (Buster) based Linux distributions use apt-get utility:
Windows Fonts
apt-get update apt-get install -y libfontconfig1 apt-get install -y ttf-mscorefonts-installer
SkiaSharp - add package to your project
dotnet add package SkiaSharp.NativeAssets.Linux.NoDependencies --version 2.80.3
System.Drawing dependencies
apt-get update apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF echo "deb https://download.mono-project.com/repo/ubuntu stable-buster main" >> /etc/apt/sources.list.d/mono-official-stable.list apt-get update apt-get install -y gnupg apt-get install -y libgdiplus
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.