System.Drawing.Common is the graphics library which ships as part of .NET Core. On macOS and Linux, it uses libgdiplus as its back-end.
You can acquire libgdiplus:
- For macOS, using the mono-libgdiplus Homebrew package
- For Ubuntu Linux, via the libgdiplus package.
This repository contains scripts which distribute libgdiplus and its dependencies for macOS as a NuGet package. This may simplify the deployment of .NET code which uses System.Drawing.Common for macOS environments.
To use this NuGet package, add a reference to the runtime.osx.10.10-x64.CoreCompat.System.Drawing:
dotnet add package runtime.osx.10.10-x64.CoreCompat.System.Drawing
For Apple Silicon, add a reference to the Curiosity.runtime.osx.10.10-x64.CoreCompat.System.Drawing:
dotnet add package Curiosity.runtime.osx.10.10-arm64.CoreCompat.System.Drawing