Grasshopper

algorithmic modeling for Rhino

Hi David,

I am using Microsoft Visual Studio to create a mesh. I have referenced RhinoCommon.dll, but I get this error:

I am using Rhinoceros 5, 64-bit, and my system is fully updated. What needs to be done to fix it? 

Thx in advance

Views: 1096

Replies to This Discussion

You must set CopyLocal to false for your RhinoCommon reference, and then make sure you delete the RhinoCommon.dll that was copied next to your plugin by Visual Studio. Rhino loads RhinoCommon for you, so you should not provide competing versions of that dll yourself.

Thank you for your reply,

"and then make sure you delete the RhinoCommon.dll that was copied next to your plugin by Visual Studio"

I cannot find any .dll file in the project's directory. Could you please be more descriptive as this the first time of mine working on sth like that?

When Visual Studio compiles a project it usually puts the resulting dll or exe or rhp files in a bin folder. The 'bin' stands for 'binaries', which is what compiled files are sometimes called. Within the bin folder there may also be a distinction between Debug and Release. However it is possible to make VS put the files elsewhere, so it all depends on the project settings.

If you're compiling Rhino plugins, and you haven't set the CopyLocal=False property, VS will put a copy of RhinoCommon.dll next to your Plugin.RHP file.

It is usually safe to delete the entire Bin and Obj folders, as you can always compile the project anew.

Thanks again David,

I got you point and just to be safe deleted the entire Bin and Object folders. The CopyLocal property is set to False. That 's what I get now...

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service