algorithmic modeling for Rhino
Hi Rhino/Grasshopper developers.
I am developing a custom GHA which refers to a dll (both the GHA project and dll project are in the same visual studio solution)
If I rebuild the GHA, I only need to restart Grasshopper so that the updated GHA can be recognized. I do not need to close Rhino or Grasshopper
But I cannot do the same with the dll that my gha refers to. In fact, Rhino locks the dll file so when I rebuild the dll in visual studio I got an error message saying "File is being used by another program". I have to close Rhino before I can rebuild the dll and then start Rhino again, which is a bit annoying.
Is there away to update the dll without having to restart Rhino everytime.
Thanks
All the bests
Long
Tags:
Anyone?
It's not even a good idea to reuse the same GHA file. It's only possible because presumably you're loading GHAs through memory using the COFF option, correct?
I have never been able to make the Edit-And-Continue feature in Visual Studio work, so yes, I restart Rhino every time I want to change the code.
Ah finally, thank you for your response :)
Yes by default the COFF option is turned on (in the Developer Settings). This allows visual studio to move the built gha to the grasshopper component folder and overwrite the old gha from the previous build. Of course I then have to restart Grasshopper (using GrasshopperUnloadPlugin followed by Grasshopper command). This has been my workflow since i started working with Grasshopper API and it is quite convenient
Seems like there is no straightforward solution. It is actually not a big problem because Rhino starts up pretty fast on my computer. I just wanted to know if that could have been avoided. Thanks for clarifying.
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by