I use Docker & net 6, bug got error:
Error : System.Drawing.Common is not supported on this platform.
I understood that this package is not supported in net 6 in linux:
What can be used instead?
I use Docker & net 6, bug got error:
Error : System.Drawing.Common is not supported on this platform.
I understood that this package is not supported in net 6 in linux:
What can be used instead?
The article you attached in the post mentions that there is a configuration variable that enables support for non-Windows platforms in .NET 6 by setting the System.Drawing.EnableUnixSupport
runtime configuration in the runtimeconfig.json
file.
{
"configProperties": {
"System.Drawing.EnableUnixSupport": true
}
}
Could you test that fix in your project?
I tried to use it but it didn’t work, I still got the same error
I sent this matter to the development team, and they are working on a Doconut version for non-Windows operating systems without using the System.Drawing.Common
package.
I don’t have a release date yet, but it will come soon. I will let you know in this post when the new version is released.