I’m creating a rhino plugin in a visual studio project using C#. This rhino plugin has a command that works fine until I use a class from another visual studio project in the command. The two projects are in the same solution. Everything compiles fine. When I go to run the command that uses a class from another project, the command immediately exits without doing anything.
I fixed this myself by going into debug → options → general and unchecking “enable just my code”. This worked briefly, then stopped working? I’m getting a system.io.filenotfoundexception in rhinocommon.dll? Are there other setting I need to change?
As @CallumSykes said, it could be many things. Could be another assembly that your other project depends on that is missing or in conflict, or it could be that project’s .dll isn’t being copied. Make sure you are using a Project Reference, and that you have the reference set to Copy Local = True.
For our application we have a lot of logic in a shared Common project. Our plugin project has a project reference to that project, by default VS will then copy that project’s resulting *.dll file into the output bin folder of our plugin project.
Verify your reference is set the same, and you should be good. Give us more info to help.