net6.0-windows10.0.19041.0 of Ap" /> net6.0-windows10.0.19041.0 of Ap" /> net6.0-windows10.0.19041.0 of Ap"/>

Unable to debug with following error: "Unable to attach to CoreCLR. A debug component is not installed."

180 views Asked by At

If I create a new project with "Blank App, Packaged (WinUI 3 in Desktop)", replace <TargetFramework>net6.0-windows10.0.19041.0</TargetFramework> of App1.csproj with <TargetFramework>net7.0-windows10.0.19041.0</TargetFramework>, and start debugging, the following error occurs.

Unable to attach to CoreCLR. A debug component is not installed. Error

The error does not occur when I it to 6.0, but the error only occurs when I set it to 7.0. Running without debugs will work fine.

This bug didn't happen after the update, but it suddenly happened without any special reason. I've tried recovering and deleting and reinstalling completely, but I still get an error.

I'm using VS Community 2022 17.7.4 version.

0

There are 0 answers