Grasshopper

algorithmic modeling for Rhino

Hi,

How do I remove a referenced assembly for the C# component (there is only an add option). Not sure if I am doing things the right way: I am writing class libraries in visual studio and using C# components as a quick way to test the code. If I need to change some code, I would like to rebuild the dlls, remove the old referenced assemblies and use the new ones instead (preferably without having to restart Rhino as well - is this possible).

thanks!

Views: 1354

Replies to This Discussion

Select the assembly you want to delete and press the Delete key.

Assemblies, once loaded can never be unloaded again from the AppDomain. So it is not possible to unload assemblies without restarting Rhino and Grasshopper. It should however be possible to load different assemblies (i.e. newer versions of the old assembly), though there may be unforeseen conflicts I'm forgetting about.

Also note that loaded assemblies become locked in Windows Explorer so the dll files cannot be deleted. You'll need to compile your new assemblies under a different name or rename them before referencing them.

--

David Rutten

david@mcneel.com

Poprad, Slovakia

Ahh ok thanks that was stupid of me.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service