Visual studio 2019 Version 16.9.6 showing fake errors after build

Naman Kumar 1 Reputation point
2021-05-21T18:44:08.38+00:00

I'm on Visual Studio 2019. After building the .sln in debug mode, I'm getting errors. When I double click the error from the error list tab, the error disappears from the page and also the bug count reduces, but as I clean build it pops up again. As I have followed process same from the Stack Overflow community to which the question has been asked again.
visual-studio-showing-fake-errors-after-build
98737-image.png

I've tried to delete .vs folder and even tried to degrade it to 4.5.2 from 4.7.2 nothing seems to work as of now. Any suggestions might pull me through the solution.

Developer technologies | Visual Studio | Other
{count} votes

1 answer

Sort by: Most helpful
  1. Karen Payne MVP 35,586 Reputation points Volunteer Moderator
    2021-05-21T19:49:25.91+00:00

    Hi,

    Close Visual Studio, re-open, do a build. Then rather than first looking at the error list, look for issues in the output window.

    Little things like invalid using directives can cause false errors. Also corrupt/invalid entries in the obj folder can lead to false errors too.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.