79809105

Date: 2025-11-04 15:51:27
Score: 0.5
Natty:
Report link

For increase visibility and because i was affected by the same issue, I allow myself to reference the solution from the comments in a dedicated answer:

.NET 9 enables Control-flow Enforcement Technology (CET) by default for managed processes. Visual Studio’s current debugger has compatibility issues with CET, causing the fatal error. Workaround: Disable CET for your app by adding this to your .csproj:

<PropertyGroup>  
   <CetCompat>false</CetCompat>
</PropertyGroup>

This allows debugging to work again.

All credits to @Chad Decker for sharing his solution!

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Chad
  • Low reputation (0.5):
Posted by: Mayor Mayer