Page 1 of 1

Native CoreCLR Debugging

Posted: Sat Aug 31, 2024 7:52 am
by jussij
When a native desktop application is using a component written using C++/CLR the following error might be generated when attempting to debug that component:

Code: Select all

Microsoft Visual Studio

A fatal error has occurred and debugging needs to be terminated. The debugger was configured to use the Desktop CLR (.NET Framework) Managed debugger, but the target process loaded the CoreCLR (.NET Core) runtime. 

To debug this project, configure it to use the 'Managed (CoreCLR)' debugger.
To fix this, change the type of debugger using the Debug properties as shown below:
clr-debug.png
clr-debug.png (106.86 KiB) Viewed 9 times
Jussi