Skip to content

Linux support does not work on >= .NET 7 #141

@parapsychic

Description

@parapsychic

While converting one of the APIs to run on a Linux server, I noticed the following issue:

System.TypeInitializationException 
The type initializer for 'Gdip' threw an exception.

This happens because of the System.Drawing libraries used. These are only supported on Windows and the .NET team has made it impossible to use the library on Linux, going as far as disabling the switches: System.Drawing.Common only supported on Windows

With the new version 1.3.1 supporting Linux, it seems like .NET versions >= 7 is not really supported.

Or am I looking at this wrong? Is there a workaround? The Linux support is not documented and I found out by digging through the PRs, so I might be wrong here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions