The System.Drawing namespace in .NET Core
Issue
-
Our developers experience the following error when attempting to write our application.
System.TypeInitializationException: The type initializer for 'Gdip' threw an exception. ---> System.DllNotFoundException: Unable to load shared library 'libdl' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: liblibdl: cannot open shared object file: No such file or directory.
-
How do I use System.Drawing in .NET Core?
Environment
- Red Hat Enterprise Linux
- 7
- 8
- .NET Core
- 2.1
- 2.2
- 3.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.