How to access nuget packages when creating GH components in VS?


I have written a code in Microsoft Visual Studios which uses the Tekla Structural Designer API (package from nuget). I now want to use this code to create a custom component in Grasshopper. I know how to create a GH component using VS but I was wondering how to reference TSD API assemblies, just importing the nuget package into VS seems to make Rhino crash when I try to run it. I know this is an issue with trying to use the API because my other custom components that don’t use it but are in the same project run as normal.

Is it possible to do what I am trying to, and if so, how do I go about achieving it?

Hopefully someone is able to help with my problem,
Thank you,