New .NET 7 Plugin - Breakpoints Not Working

I’ve just used the Project Template to create a new plugin, and I had to add the -windows to the TargetFrameworks element, since I’m using WPF/WinForms.

image

Upon starting Debugging from Visual Studio no breakpoints can be hit, even though the plugin is loaded.

I’m sure I’m doing something wrong here. If I change the debug framework to net48 the breakpoints work, but then I’m running Rhino in Framework mode…


Any help would be appreciated @curtisw @nathanletwory

Hey @jstevenson,

You’re likely not hitting breakpoints because Rhino is still configured to use .NET Framework. You need to ensure you run Rhino.exe in .NET Core mode. You can usually add /netcore as an argument to Rhino.exe in your launch configuration to force that mode even if you’ve configured Rhino to run in .NET Framework when run directly.

Hope this helps!

Thank you! I feel stupid, lol. Adding the /netcore to my startup worked flawlessly to override the runtime default setting.