question

NamanKumar-7840 avatar image
0 Votes"
NamanKumar-7840 asked NamanKumar-7840 commented

Visual studio 2019 Version 16.9.6 showing fake errors after build

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.


vs-general
image.png (84.4 KiB)
· 9
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @NamanKumar-7840 , welcome to Microsoft Q&A forum. Please also try closing every VS Instances, renaming(deleting) all of the ComponentModelCache folders under this path C:\Users\[user name]\AppData\Local\Microsoft\VisualStudio\16.0_XXXXXXX, and delete .vs, bin and obj folders then reopen your project and rebuild it again. Besides, please also try to repair your Visual Studio from VS Installer.

1 Vote 1 ·

Thank you now the error is persistent and not hiding I've done everything as you mentioned. What I didn't do was

C:\Users[user name]\AppData\Local\Microsoft\VisualStudio\16.0_XXXXXXX

,

bin

and this repairing VS by Installer



0 Votes 0 ·

Its also showing same issue once again, if install any dependency using nuget manager

0 Votes 0 ·

I guess this is an issue of VS 2019 which needs to be addressed. As after installing some packages it started showing and hiding the errors once again.

0 Votes 0 ·

Hi @NamanKumar-7840 , yes, this is possible. I suggest you report this issue to VS Product Team by using Help > Send Feedback > Report a Problem… option. Before reporting, I may recommend you update VS to the latest version 16.10.0 to see if this issue has been fixed in a newer version.

0 Votes 0 ·
Show more comments

What additional messages do you see if you unselect “22 Errors” and “25 Warnings” buttons and click “0 of 52 Messages”?

0 Votes 0 ·

1 Answer

karenpayneoregon avatar image
0 Votes"
karenpayneoregon answered

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.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.