Hey @rudolf.neumerkel,
Thanks for bringing this up. System.Drawing and Windows Forms support is provided when running Rhino as we have our own implementation of both based on Core Graphics and Cocoa on Mac.
It looks like this is something that we need to fix up in the Rhino 8 templates in order to properly compile in .NET 7. For now, you can simply remove net7.0 as a target framework in the .csproj, making it look like this:
<TargetFrameworks>net48</TargetFrameworks>
Alternatively, if you do want to compile for .NET 7 as well (even though we recommend only distributing the net48 build if you want to support Rhino 7 or Rhino on Windows), you can add the following to the .csproj:
<ItemGroup>
<PackageReference Include="System.Drawing.Common" Version="7.0.0" IncludeAssets="compile;build" />
</ItemGroup>
One bit of bad news, is that Visual Studio for Mac was recently retired, which is probably a good thing as they kept on breaking things. As an example, the latest version of VS for Mac I am getting a crash trying to load grasshopper while debugging
. I’m not sure if you’ve run into the same or not.
Fortunately, Microsoft isn’t dropping Mac support and is investing energy into Visual Studio Code instead, which might turn out for the better. It has great debugging and intellisense when developing for Rhino, but does require a little more setup to get things going.
We will soon be updating all our guides for Mac development to use Visual Studio Code so it will hopefully make it easier to get started with it.
Hope this helps!