Visual Studio has dementia
I was working on a WPF project, then I closed Visual Studio.
When I opened Visual Studio again, it showed me 10 incorrect errors, which all were
The name ... does not exist in the current context.
.
This happened by itself, I did not break anything.
Trying to build with the code-behind tabs open fails but works if I close them.7 Replies
$vsdrunk
* close VS
* remove the hidden folder
.vs
* remove all bin
and obj
folder next to each csproj (DO NOT TOUCH THE .git
FOLDER OR WHAT'S INSIDE)
* restart vsi love the title
Me too. I see stuff like this too often at work and is why I bought myself Jetbrains rider
Happens on WinUI3 as well
oh thanks!
why does this work?
¯\_(ツ)_/¯
sometimes there are things cached in those folders that can make VS do weird things