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!
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.
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.