dotnet / sdk

Core functionality needed to create .NET Core projects, that is shared between Visual Studio and CLI
https://dot.net/core
MIT License
2.66k stars 1.06k forks source link

RuntimeIdentifier in CSproj causing the CLR exception while debugging. #22709

Closed davidborka closed 2 years ago

davidborka commented 2 years ago

Describe the bug

Given the VisualStudio2022 and .net 6 the target framework When the CSproj file contains the Runtimindetifier property settings. Then the Visual studio can't run the application in debug mode, the error message: "Unable to attach to CoreCLR. Operation is not supported."

To Reproduce

NET6issue

vijayrkn commented 2 years ago

Visual Studio specific issues are reported and tracked via the Visual Studio developer community. The platform has additional support for collecting logs & traces. Please follow the instructions here & submit an issue through Visual Studio - https://docs.microsoft.com/en-us/visualstudio/ide/developer-community-guidelines?view=vs-2022#before-submitting-an-issue