Handling Multiple RHP Files for Multi-Targeted Plugin in Rhino 8

Hello everyone,

I’ve developed a multi-targeted plugin for Rhino 8 that builds for both .NET Framework and .NET 8. As a result, I now have two sets of DLLs and RHP files—one for each runtime.

The challenge I’m facing is this: if a user switches between .NET Framework and .NET 8, how can I prompt Rhino to load the appropriate RHP file based on the runtime in use? Is there a way to configure Rhino to recognize and load the correct version automatically, or would I need to implement custom logic to detect the runtime and adjust accordingly?

Any guidance on achieving this runtime-specific loading behavior would be greatly appreciated!

Thanks in advance for your help!

1 Like

Thats a great question. I decided to write a Rhino Launcher that starts rhino with the appropriate /netcore or /netfx switches so that I was in control for our users, and then loads our scheme/skin.

I’m curious to see how you solve this issue.

1 Like

@curtisw - is this something you can help with?

Put the rhp in an appropriately named folder related to the runtime, like net48, net7.0, etc.

The latest Rhino Templates have all of this behaviour correctly set up so you can just get going with Debug on Win & Mac, net48 & net7.0, Visual Studio & VS Code.

Did you use these and are still having issues?

1 Like