Help first steps debug Visual Studio 2022

Hi everybody,

I’m in my very first steps with c# plugin development.
In fact, not even the first steps since I can’t get visual studio to work as expected.

So far I’ve installed visual studio 2022 on a windows 11 pc. Installed rhinocommon extension.

When I open a new rhinocommon project I get stuck… the debugging command is grey out.

I’m not sure if I’ve missed something from the setup guide in rhinocommon docs … I can’t find any particular procedure for c# apart of installing visual studio with .net desktop workload and rhinocommon.

Do you guys have an idea what it could be that I’m doing wrong ?

I guarantee that I’ve been searching everywhere but honestly I can’t get it work… quite embarrassing :slight_smile: :sweat_smile:

Thanks to anybody who try to help :slight_smile:

Hi, I just want to follow up from my first message.

1- same exact procedure is giving me not error with another pc with same setup but working on win 10.
not sure but chance are this is something related to windows 11.

2- i see that the solution is empty once i try to create a new project from the rhinocommon template. Therefore no debug. I still couldn’t figure out why the template is not generating all the stuff is supposed to do.

As always if anyone had same experiece , please, help me :slight_smile:

Thanks

Hi,

you need to attach the Debugger to the Rhino Process in which you are executing your Plugin.
MainMenu->Debug->Attach… . Don’t forget to set a breakpoint.

Thanks Tom:)

I’ve finally get it wotking by changing the position of the dotnet file path. Inside advance system enviroment.

If anybody would ever need feel free to send me a message.

Bye