I am trying to compile my first GH plugin with VisualStudio for Mac by opening the Provide Sample Code
. When I try to compile it, I get the following error message:
/Users/rudolfneumerkel/Projects/HelloGrasshopper/HelloGrasshopper/HelloGrasshopperInfo.cs(21,21): Error CS1069: The type name ‘Bitmap’ could not be found in the namespace ‘System.Drawing’. This type has been forwarded to assembly ‘System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51’ Consider adding a reference to that assembly. (CS1069) (HelloGrasshopper)
when going to the Microsoft documentation, I see the following:
Note
In .NET 6 and later versions, the System.Drawing.Common package, which includes this type, is only supported on Windows operating systems. Use of this type in cross-platform apps causes compile-time warnings and run-time exceptions. For more information, see System.Drawing.Common only supported on Windows.
Is this a temporary thing, are there good workarounds?
Maybe the standard sample code that comes with the RhinoCommon NuGet package should be updated?
I gues instead SkiaSharp has to be used?
Cheers, Rudi