appletree5641
appletree5641

Reputation: 135

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

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.

Upvotes: 0

Views: 454

Answers (0)

Related Questions