Visual Studio 2022 Incorrect Error Squiggles related to WPF XAML Controls
For a good while now, VS 2022 has been displaying incorrect error squiggles in the code-behind .cs file for WPF controls anywhere that a FrameworkElement is referenced in the code. The code compiles and runs fine but it has become such a hindrance that I’ve had to disable the error squiggles altogether. Has anyone experienced and found a solution to this? Deleting the .vs folder works only temporarily. I searched a lot and best/latest I could get is the issue registered with Microsoft below.
Some assembly references are missing
So I run into a problem where my project suddenly got an error saying the same as the title I’ve made. I never run into this before. This is happening when I run visual studio 2020 in regular mode, but when I run it as Admin it works fine and not showing this error message. Before I always run the visual studio 2020 in regular mode, I’ve never run it in Admin mode when I develop my project. I’m afraid if I develop my App in Admin Mode later when I build it into Application it will turn into a problem.
My Project using dotnet-8.0 framework in WPF.