Building .dll to program files


#1

Hi I am trying to build .dll to program files, rhino wip grasshopper components folder but I get denial from visual studio:

Severity Code Description Project File Line Suppression State
Error Unable to copy file “obj\Debug\NGonsCore.dll” to “C:\Program Files\Rhino WIP\Plug-ins\Grasshopper\Components\NGonsCore.dll”. Access to the path ‘C:\Program Files\Rhino WIP\Plug-ins\Grasshopper\Components\NGonsCore.dll’ is denied. NGonsCore

Is there a way to go around this?


#2

Instead of copying I use LinkShellExtension to make a symlink down to the compiled .gha under the VS project, like so (red square is a symlink) :

In this way I also don’t have any trouble with dated copies of the .gha files, and so on.

// Rolf


(Dale Fugier) #3

Hi @Petras_Vestartas,

Using Rhino’s install folder as a destination for plug-in or Grasshopper assembly builds is a bad idea.

For Grasshopper, I’d set your output folder to here:

%appdata%\McNeel\Rhinoceros\5.0\Plug-ins\Grasshopper (b45a29b1-4343-4035-989e-044e8580d9cf)\0.9.76.0\Components

– Dale