Visual Studio displaying errors even if projects build

Posted chucklu

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Visual Studio displaying errors even if projects build相关的知识,希望对你有一定的参考价值。

Visual Studio displaying errors even if projects build

回答1

If you have ReSharper, try emptying the ReSharper cache:

In menu, ReSharper > Options > Environment > General > Clear Caches

and disabling and re-enabling ReSharper:

In menu, Tools > Options > ReSharper > General > Suspend / Restore

 

 回答2

Clearing Resharper‘s cache did not help in my case, tried suspend/restore, and also Repair Resharper, using latest download off JetBrains‘ website - neither of these helped. This is after I tried close/reopen VS, restart my machine, repeat, Build/Rebuild and combination thereof.

It‘s interesting that suspending Resharper seemed to solve the problem after the 2nd restart of VS, but it was back after I enabled Resharper <-- I tried to do this sequence 2-3 times to ensure the pattern.

Anyway, I was still having issues when I found this article:

So I deleted the hidden .SUO file on the same folder level with solution, and it magically solved all reds.

Note - for Visual Studio 2015, the .SUO file is in .vs/[solution_name]/v14 hidden folder.

 

以上是关于Visual Studio displaying errors even if projects build的主要内容,如果未能解决你的问题,请参考以下文章

visual studio黑暗主题中匹配括号高亮显示问题

visual studio code 配置remote ssh X11Forwarding显示

visual studio怎么替代IAR

无法找到visual studio 2017生成工具

dev文件用visual studio怎么打开

visual studio 2005 图像上 添加 数字