Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2022 Debugger thinks I changed code and wants to hot reload

EDIT: Good information provided below to diagnose, but the issue was I was running Visual Studio 2022 17.3. Version 17.4 is required for .NET 7, and I had just installed that. Once I installed the latest version of VS, all my problems went away. Install with Visual Studio

Suddenly today, debugging my ASP.NET Core 6 and 7 apps suddenly has stopped working. I hit F5 to debug, it stops on my breakpoint, but as soon as I continue or step into, I'm shown this dialog:enter image description here

I haven't made any changes to code, I'm simply trying to continue after I've stopped at a breakpoint. This just started happening today and I can't figure out what I did.

like image 541
ScottG Avatar asked Jan 30 '26 22:01

ScottG


1 Answers

Today this happened to me, I couldn't debug project, this popup appeared on every break point.

I fixed it by removing folder .vs located near your solution file.
This folder will be recreated when you open solution next time.

like image 57
Anton Palyok Avatar answered Feb 03 '26 08:02

Anton Palyok



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!