Grasshopper templates for Rhino 7 C# problem

Hi GH-Dev community.
I following GH-guide and also some the public youtube videos to develop my first plugin but when I use the template there are some issues I using VS2019.

I don’t know why? because there are easy steps to follow and aparently these configurations area automatically, I think some linked references are missing. I am a newbie VS user but

1.There is no BUILD in the Menu.
2.Solutions-Configurations and Solutions-Platforms are LOCKED.
3.There is an ATTACH instead of
4.In Solution Explorer appear “0” project…

I don’t believe is a template issue because I reinstall all again but the problem continue or what could have happened?
A bit frustrated because is the first step… Could someone explain to me what happened or is there probably a manual way to fix it? please :pray:t2:
Bests

You have a solution but it is just a sort of container. You must do
File → New → Project


Then you could add your cs file to the Project

On the project you’ll have your build etc…

Thank you for the response, I already did what you mention. I just want to run the provide sample code “Spiral” following this
5.3 Development Setup of a Grasshopper Plug-in - Advanced Development in Grasshopper - YouTube As I mention this is the first step but I can´t continue because of that.

I don’t understand, on your screenshot there is NO PROJECT. There is just one solution.
Please post a screen capture of File → New Project to see what you have !

but this is what I get and no understand why

Ok, so if you click on Grasshopper Assembly then NEXT then accept everything do you have a project created in your solution. Please take a screenshot at each step

I create a GGGG project but still 0 project

Very strange, I have no idea,
miscellaneous files are not in a project, which is logical.

Perhaps it is a question of directory.
Where is your solution ? Search for file with sln as extension. SO it must be NEWTEST.sln

Try to reopen visual studio, create nothing
then new project and choose wisely the location.

can’t solve it :frowning_face: @laurent_delrieu please, could you create a Project of the standard example and upload all the FOLDER project? I would like to test if I can debug it. :pray:t2:

@curtisw @stevebaer @dale any idea what happened?

No, sorry that is certainly an odd issue! I just tested it again locally on VS 2019 and everything seems to work.

What I would recommend is to ensure you have all the latest updates for VS 2019 (16.11.23 is the latest right now), that you have the .NET Desktop Development workload installed, and that you have the latest version of the RhinoCommon and Grasshopper templates for Rhino 7 extension installed (7.13.0.0).

1 Like

Thank you @curtisw for your response but I have the latest versions and since it seems theoretically it should work but it doesn’t. In the meantime could you please make a small tutorial on how to configure it manually? I would be infinitely grateful. :pray:t2:

I started this journey to develop a modest plugin with basics loops but I ran into this problem and I don’t know what to do anymore.

This NEWTEST is what I get after your template.
Hope you can help me.

NEWTEST.zip (5.2 KB)

Laura
.
VS 2019 (16.11.23)

RhinoCommon and Grasshopper templates for Rhino 7 (7.13.0.0)

Since the project and code files have been created try now right-clicking our solution entry in the solution explorer and choose Add > Existing project... and select the NEWTEST.csproj file. Once you have done that make sure to save all files before closing Visual Studio.

If that doesn’t work perhaps make a screen recording (with say open broadcast software) of how you create a new solution and project and share that recording.

1 Like

@nathanletwory thank you it works The issue was I missing some “optional tools”
.NET SDK (out of support)
.NET Framework 4.8 development tools

After your suggestion this windows appeared

Then I installed the .NET SDK (out of support) and apparently work but when I debug there is no bin folder. So I found this discussion and installed the .NET Framework 4.8 development tools and finally works.

So my question is why I was missing these necessary tools?
I guess those tools should already be there since they are optional but essencial for the template.
Is there any other that you recommend to add? Thank you for the support

How about this github realease 7.21.0.vsix or should I continue with the 7.13.0.0? @curtisw

1 Like