Skip to main content
All docs
V23.2

Office File API .NET Limitations and Troubleshooting

.NET Core

The following feature is not available in the Office File API for .NET Core/.NET 6+:

  • Print documents, workbooks, and PDF files (Linux and macOS).

System.Drawing.Common Package Version 6

With the .NET 6 release, the System.Drawing.Common library is compatible with Windows only. Applications that are built for non-Windows platforms throw the TypeInitializationException and PlatformNotSupportedException exceptions. Refer to the following breaking change for more information: System.Drawing.Common only supported on Windows.

You can set the System.Drawing.EnableUnixSupport runtime configuration switch to true in the runtimeconfig.json file to enable support for non-Windows operating systems and to avoid runtime exceptions:

{
   "configProperties": {
      "System.Drawing.EnableUnixSupport": true
   }
}

Use the SkiaSharp-based drawing engine in non-Windows environments to resolve issues. Refer to the following articles for more information:

Refer to the following article for more information on DevExpress.Drawing library troubleshooting: Troubleshooting