libgdiplus

This article was translated from English: Does it need improvement?
Translated
View the article in English

.NET Core requiere libgdiplus para utilizar Microsoft System.Drawing.Common paquete nuget. Si no se encuentra en MacOS en Linux puede experimentar esta excepción:

  • Excepción no controlada. System.DllNotFoundException: No se pudo encontrar o cargar la biblioteca nativa de cualquier nombre: [ libgdiplus, libgdiplus.so ]_

  • Si ve System.TypeInitializationException : The type initializer for 'Gdip' threw an exception_ entonces por favor lea nuestro System.Drawing.Common en NET6 guía en su lugar.

Linux

Ubuntu, Debian

apt-get update && apt-get install -y apt-utils libgdiplus libc6-dev

Docker

Añade esta línea al archivo Docker y debería funcionar

RUN apt-get update && apt-get install -y apt-utils libgdiplus libc6-dev

macOS

Excepción no controlada. System.DllNotFoundException: No se pudo encontrar o cargar la biblioteca nativa de cualquier nombre: [ libgdiplus, libgdiplus.dylib ]_