The System.Drawing namespace in .NET Core

Solution Verified - Updated -

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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content