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. I don’t have any 3rd-party tools or such installed in Visual Studio – it’s a simple setup. 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.

https://developercommunity.visualstudio.com/t/Incorrect-error-messages-in-xamlcs-fi/10595570?space=41&sort=newest

Leave a Reply

Your email address will not be published. Required fields are marked *