Unable to start Rhino8 from Visual Studio 2022 for debugging

As per the title…

Any clues please?

Thanks

Paul

Make sure you set debugging to .net core. I typically start from a C++ project where you can also select the debugging type to do, like mixed with .net core (meaning .net 7), or mixed with .net framework.

If you do not want to compile your .net plug-in with .net 7 you can give the /netfx command-line argument, that makes Rhino start with .net framework. But note that Rhino 8 is supposed to work with .net 7, the /netfx is a stopgap measure for plug-in developers to use until they get their plug-ins compiled with .net 7.

ah you beat me @nathanletwory

Our projects have a several launch profiles.

you can copy them to your project by placing them in <yourproject>\Properties\launchSettings.json

{
  "profiles": {
    "Rhino 7": {
      "commandName": "Executable",
      "executablePath": "C:\\Program Files\\Rhino 7\\System\\Rhino.exe"
    },
    "Rhino 8 - .net 4.8": {
      "commandName": "Executable",
      "executablePath": "C:\\Program Files\\Rhino 8\\System\\Rhino.exe",
      "commandLineArgs": "/netfx /nosplash"
    },
    "Rhino 8 - .net 7": {
      "commandName": "Executable",
      "executablePath": "C:\\Program Files\\Rhino 8\\System\\Rhino.exe",
      "commandLineArgs": "/netcore /nosplash"
    }
  }
}

Awesome - thank you @nathanletwory and @david.birch.uk .

Paul

1 Like