We have plugin developed for Rhino 7, and want to support Rhino 8.
As Rhino 8 have .NET core support, we want to migrate .NET framework 4.8 to .NET core.
We saw that current Rhino.common nugget supports .NET framework 4.8.
Can anyone help how we can support Rhino.Common nugget with .NET core?
The RhinoCommon nuget package only targets net48 currently (we are working to update that), however you can still use it from a .NET 7 project.
It will give you some warnings about referencing a .NET Framework assembly from .NET Core, which you can add <NoWarn>NU1701</NoWarn> to your .csproj to ignore them for now.
Thank you for your response. We were able to build our custom plugin by ignoring the warning.
We’re aiming to target .NET 8 for our use, but as far as I know, the current Rhino 8 is based on .NET 7. Could you confirm if that’s correct? Additionally, we have another external library that depends on .NET 8. Will our plugin work correctly under these conditions?
You are correct in that Rhino 8 currently only supports running with the .NET 7 runtime (or .NET Framework 4.x), so anything targeting .NET 8 will probably not work. I have RH-81818 on my list to support running on later versions of .NET, but it won’t likely be the default.