Use ASP.NET Core Reporting in non-Windows Environments
- 2 minutes to read
This topic describes how to enable the DevExpress.Drawing rendering engine in your ASP.NET Core application.
The DevExpress Drawing Library allows you to use the new Skia-based drawing engine. This library ships with the DevExpress primitives, which serve as counterparts for the System.Drawing primitives (Font
, Pen
, Brush
, and so on).
If you use the the System.Drawing.Common
package v7 and later, the Skia-based engine is enabled automatically.
Refer to the following article for information on how to use the DevExpress Drawing library on Linux or macOS: Use Reporting on Linux and macOS..
Configuration
To enable the SkiaSharp-based engine, add the following packages to your application:
- DevExpress.Drawing
- DevExpress.Drawing.Skia (if your application uses the System.Drawing.Common package version 7 and higher)
- Microsoft.ICU.ICU4C.Runtime
If the engine is not enabled automatically and the NotSupportedException
is thrown, call the DevExpress.Drawing.Internal.DXDrawingEngine.ForceSkia()
method to force the Skia-based rendering. Please note that this API is marked as internal and we may change it in the future. Please research why the SkiaSharp-based engine was not enabled automatically in your environment (you can contact the DevExpress Support team, specify your OS version, installed software dependencies, if you already added required packages to your non-Windows app).
Refer to the following article for more information on library troubleshooting: Drawing Library Troubleshooting.
Configure the Environment
The following commands configure the environment in the Dockerfile: