Search results
Suggest a FeaturePDF

How to resolve the image not rendered issue in .NET 6.0 on Linux Environment

Image not rendered issue occurred in .Net 6.0 and above versions on Linux environment due to lack of System.Drawing.Common package support in these versions of .NET 6.0 and above on Linux.

To resolve this issue, you can follow the steps outlined in the provided instructions:

Step 1 : Open the [Application Name].runtimeconfig.json file in a text editor.

Step 2 : In the runtimeconfig.json file, set the System.Drawing.EnableUnixSupport runtime configuration switch to true by adding it to the configProperties section, as shown in the following code sample.

{
  "runtimeOptions": {
    "tfm": "net6.0",
    "frameworks": [
    ],
    "configProperties": {
      ......
      ......
      "System.Drawing.EnableUnixSupport": true

    }
  }
}

EnableUnixSupport

Having trouble getting help?
Contact Support
Having trouble getting help?
Contact Support