The debugger can only run in .NET Framework mode or in .NET 6 mode, not both at the same time.
The message says “debugger is configured to use the desktop CLR (.NET Framework) managed debugger”.
You need to figure out how to change this configuration, so that your debugger uses the other runtime, which matches your project.
You do you configure this in Visual Studio?
I don’t really know, but you can try this procedure:

Next time you run your project with the debugger (normal F5 debugging), it should still remember this setting, and debug with the right debugger.
-Govert
--
You received this message because you are subscribed to the Google Groups "Excel-DNA" group.
To unsubscribe from this group and stop receiving emails from it, send an email to exceldna+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/exceldna/ff479045-4978-4b1c-ab44-71eef9120ffan%40googlegroups.com.