How to debug grasshopper custom component for Tekla Structures

Hi,

I have developed a custom component for Tekla Structures. When I try to debug it using Visual Studio 2022 (Start Debugging, F5), I get an error like the one shown in the image (but i already set the SetdotnetRunTime as .NetFramework). However, when I open Rhino normally, I don’t face any issues, and I am able to use Tekla Live Link as usual. I’m new to development for GH-Tekla components. Anybody help me on this issue. Thanks!

In Visual Studio you have presumably defined Rhino.exe as the startup application. Then set the command line arguments to

/netfx /nosplash /runscript=“-_Grasshopper _window _show”

where /netfx sets up Rhino to use .NET Framework. The place to do this will depend on the .csproj style you’re using.

Cheers,

-b