Skip to content

Referencing Grasshopper_UI in another project #654

@alelom

Description

@alelom

Context

I am trying to reference some types defined in Grasshopper_UI.
Although cases like mine are quite uncommon, I remembered that for BHoM_UI we do provide a Nuget package, which I found useful.

Related to this, I tried to reference the Grasshopper_UI compiled assembly from our C:\ProgramData\BHoM\Assemblies folder.
However, unlike for other assemblies, our PostBuild events in Grasshopper_UI copy a "renamed version" of the assembly, changing its extension to .gha.

This makes referencing the Grasshopper_UI.dll from a central location impossible, am I mistaken?

Question/proposal

Could we consider packaging also Grasshopper_UI as a Nuget?
In my case, it would be quite useful, although I'm conscious it is and will remain an edge case.

Alternatively, would storing two copies of the assembly (a .gha for Grasshopper, and a .dll for referencing) create problems?

Metadata

Metadata

Assignees

Labels

type:featureNew capability or enhancement

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions