Some progress to report that might help some people but, inevitably, a set-back.
In your VS Solutions panel, right click on the SECOND row called “ProjectName”. Refer to the attached image. Go to the bottom of the menu and click on Options. You should get a screen similar to the one shown in the image. At the top of that panel you’ll see an option called Plug-in Type. It doesn’t seem to matter if you choose Grasshopper Component or Autodetect. The important thing is that VS detects a Version 7 component. If it doesn’t, as mine originally didn’t, you’ll need to correct your project files with some kind of text editor.
Go to your ProjectName.csproj file, then make sure you have code that states something like:
That is to say, the version number must not be something like 6.x, as would be generated for Rhino 6.
So, that got the de-bugger to recognise Breakpoints. And immediately I ran into a problem initiating Surfaces or NurbSurfaces. It didn’t matter where I tried to do the declarations in my code. I got the same error. Which I don’t really need to get into, but here’s the fix. I’m sure it will help with other problems. In your Solutions panel in VS go to the ProjectName subdirectory and make sure your Dependencies include Grasshopper and RhinoCommon in the NuGet subdirectories, as shown in the image. Make sure you update these. You can do that with a right click. After about a five hour search, where I found other things that may or may not have been awry, updating the Dependencies finally got things to work.
At least for a day or so. Then for no apparent reason the debugger stopped finding Breakpoints.
Which brings us to the next saga. It turned out that something deleted my RhinoCommon.dll file from the location I had set. It could only have been VS or Rhino because I wasn’t working with anything else on my computer at the time. Fortunately, I had another copy elsewhere on my machine. (Which brings up another topic. Why, if I’ve upgraded to Rhino 7, got the most recent updates for everything RhinoCommon, why does my RhinoCommon.dll file have a date of 24 June 2020 on it?!) So I re-installed the RhinoCommon.dll and still VS wasn’t finding the Breakpoints.
Right now the only way I can detect Breakpoints is if I run the component on a Timer. Which I was doing anyways but it makes de-bugging very difficult and has a habit of hanging up. Right now I’m thinking of abandoning Rhino 7 completely.
I’ve probably done all kinds of things wrong in these fixes. I’m not the expert on these things. Nor do I ever want to be. I really, really, really don’t want to be an expert on these things!! But, given the current state of the release, I’ve got no choice.
So, to the very good people at Rhino – and I do think you’ve done wonderful work – please, please PULEEEASE (!) come up with a Rhino 7 Plug-in Wizard soon. For the rest of you, if you’re interested in geometry, architecture, AI or anything else but vagaries of computer threading science, I’d advise to avoid an upgrade to Rhino 7 like the plague!
John O’Keefe