Rhino Common .Net Framework changed?

Hi, I was wondering if you raiesd the .Net Framework for RhinoCommon from 4.6 to 4.8?

After installing the Release Candidate of Rhino 7 RS5, my plug-Ins won’t build anymore (unless I change the Framework).

Thanks,
Martin

Hi Martin!

I think so. @Alain did this work. You can both use an old RhinoCommon assembly from a previous Rhino 7 SR, or switch to NuGet. See more info here: Using NuGet with C#.

Thanks, Giulio

Hi,
Yes, RhinoCommon now targets net48.

1 Like

Your plugin has actually been runnnig under .NET 4.8 for the entire time that Rhino 7 has been available as that is the framework version that ships with Rhino andn is what Rhino loads. We finally got around to getting all of our libraries updated to properly show that they target 4.8.

You should adjust your framework target to 4.8 in your plug-in project. Once that is done, everything should compile.

Thank you for the info. We’ll switch the target Framework then.
-Martin

Just for others to find this topic more easy:

if you have the wrong target Framework, for example 4.6 instead of 4.8 you will get the follow error in the first line in visual Studio error list:

Error CS0246
The type or namespace name ‘Rhino’ could not be found (are you missing a using directive or an assembly reference?)