Compiling Plugins for both Rhino 6 and Rhino 5 in the same solution

Hi All,

I have developed a Rhino 5 plugins, I am now upgrading it to Rhino 6. I saw the Rhi structure in the help section and it has a structure like the picture below.

What is the best way to set up my Visual Studio solution to compile for both Rhino 5 and Rhino 6?

Do I have to create two project with duplicated code which one is for Rhino 5 and one for Rhino 6?

Hi @TobyLai,

The differences between the Rhino 5 C++ SDK and the Rhino 6 C++ SDK are great It’s probably best to have two projects.

If you are using RhinoCommon, you can probably get away with using a single project. But you will need to edit your .vcproj file by hand to make build configurations that reference the different versions of RhinoCommon.

– Dale

1 Like