NET 6 in linux container

I am working on upgrading a linux container that uses Aspose.Cells to .NET 6. I get the exception below

System.Net.WebException : System.TypeInitializationException: The type initializer for '\u000f ’ threw an exception.
284 —> System.TypeInitializationException: The type initializer for ‘Gdip’ threw an exception.
285 —> 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.

Other than the temporary workaround stated by Microsoft is the path to just stay in .NET Core 3 until the rewrite of the graphics library implementation is done (hopefully before .NET 3 EOS)?

@binisha,

Please try using latest version of Aspose.Cells for .NET 21.12 (if you are not already using it).
See the thread for your reference.

Hi @binisha
For now, system.drawing.common only works with Microsoft’s suggested configuration in net6 in linux:

System.Drawing.EnableUnixSupport = true

We are in the process of rewriting the graphics library, but it will take some more time.