Grasshopper project

Hi guys,

I have used visual studio 2022 to create a new grasshopper project. I didn’t do anything, but I can’t compile. Please see messages below (sorry for this long messy text). It is odd.
I have tried “add project reference”, and select system.drawing.dll, but not successful, the dll doesn’t appear in the project.
I am not familiar with c# project, need help here. I hope I can start a project with a good sample project, but it failed in the first step, I am stuck here.

Regards
John

1>C:\tech78\rhino\SheetMetalTools\SMFlange\SMFlangeInfo.cs(13,25,13,31): 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.
1>C:\tech78\rhino\SheetMetalTools\SMFlange\SMFlangeInfo.cs(13,32,13,36): error CS0012: The type ‘Bitmap’ is defined in an assembly that is not referenced. You must add a reference to assembly ‘System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51’.
1>C:\tech78\rhino\SheetMetalTools\SMFlange\SMFlangeComponent.cs(143,43,143,49): 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.
1>C:\tech78\rhino\SheetMetalTools\SMFlange\SMFlangeComponent.cs(143,50,143,54): error CS0012: The type ‘Bitmap’ is defined in an assembly that is not referenced. You must add a reference to assembly ‘System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51’.

Hi @smartunfold,

Add System.Drawing.Common to your project via NuGet.

– Dale

thank you.

Is System.Drawing.Common also compatible for Rhino on Mac or should a library like SkiaSharp, ImageSharp, Aspose.Drawing or Microsoft.Maui.Graphics be used to make it compatible on all platforms?

Kind regards
Joshua