Thanks for the answer. The reason is that I am using the same library in a standalone application as well as plugins for other software. Some of the users might not have Rhino installed.
Dale is correct, you are going to need to compile your library twice with difference references. Once for the stand-alone application and once for the Rhino plug-in.
I was actually trying do the same thing, too bad for the type compatibility.
It would be nice in the future to implement a .net interface to make thoses classes compatibles.
Hello, I have the same concern, as I develop a standalone version I use Rhino3dmIO which is great for my project. But It will be awesome to also be able to use the library I develop in Grasshopper. Having the flexibility of Grasshopper/Rhinoceros for super users and a standalone version for classical user is an ideal way of working.
So I am able to change the library (Rhino3dmIO or Rhinocommon) by hand inside Visual Studio. Is there a more clever to do ?
By the way thanks for all the libraries, tools that are available.
Here an example of how I pick the right assembly based on operating system without using build configuration in case you ever run into the need for that (:
@nathanletwory and @stevebaer thanks for your reply I am now able to output 2 differents dll or Exe depending on what I need. So I have the best of the 2 world (Dedicated stable software without Rhinoceros or research tool inside Rhinoceros/Grasshopper)
For who have the same problem as me, don’t forget to “unload the project” before changing the csproj. (right click on the name of the project)
Here the change inside the csproj file
Do you need a 32bit build for your standalone version? We have just released a new version of our standalone library the runs on Windows, Mac, and Amazon Linux but only as 64bit at the moment. https://www.nuget.org/packages/Rhino3dm/