Hi,
We are migrating .Net 6 to .Net 8 and facing the below issue with Aspose.Html on linux. Even using Aspose.Drawing but facing the below error -
13:46:34 Error Message:
13:46:34 System.TypeInitializationException : The type initializer for ‘Gdip’ threw an exception.
13:46:34 ---- System.PlatformNotSupportedException : System.Drawing.Common is not supported on non-Windows platforms. See Breaking change: System.Drawing.Common only supported on Windows - .NET | Microsoft Learn for more information.
13:46:34 Stack Trace:
13:46:34 at System.Drawing.SafeNativeMethods.Gdip.GdipCreatePath(Int32 brushMode, IntPtr& path)
13:46:34 at System.Drawing.Drawing2D.GraphicsPath…ctor(FillMode fillMode)
13:46:34 at System.Drawing.Drawing2D.GraphicsPath…ctor()
13:46:34 at …ctor()
13:46:34 at …ctor(ImageRenderingOptions , ICreateStreamProvider )
13:46:34 at . (ImageRenderingOptions , ICreateStreamProvider )
13:46:34 at Aspose.Html.Rendering.Image.ImageDevice…ctor(ImageRenderingOptions options, ICreateStreamProvider streamProvider)
13:46:34 at . ( , ImageSaveOptions , ICreateStreamProvider )
13:46:34 at Aspose.Html.Converters.Converter.ConvertHTML(HTMLDocument document, ImageSaveOptions options, ICreateStreamProvider provider)
Please can you help with above.