BHoM / BHoM/Grasshopper_UI

Referencing Grasshopper_UI in another project

Open
#654 2 comments 1 reaction 1 assignee Claimed by @alelom View on GitHub
type:feature
Dominant language
C#
Stars
18
Forks
5
PR merge metrics
No merged PRs in 30d

Description

### 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?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.