VS2017 在源代码中出现大量“无法解析符号"错误,但一切都在构建中 [英] VS2017 Getting numerous 'Cannot resolve symbol' errors in source but everything builds

查看:46
本文介绍了VS2017 在源代码中出现大量“无法解析符号"错误,但一切都在构建中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 VB.Net 源代码文件中收到许多无法解析符号"错误.解决方案中的一切构建都没有问题.

I am getting numerous 'Cannot resolve symbol' errors in a VB.Net source code file. Everything in the solution builds without a problem.

Peek Definition 和 Goto Implementation 工作正常.

Peek Definition and Goto Implementation work fine.

到目前为止,我已经尝试了以下方法:

Thus far, I have tried the following:

  1. 做了一个构建 |清洁,关闭 VS 2017,重新启动 VS 2017 并进行构建 |重建解决方案.

  1. Did a Build | Clean, closed VS 2017, re-started VS 2017 and did a Build | Rebuild Solution.

清除 ReSharper 缓存,关闭 VS 2017,重新启动 VS 2017.

Cleared the ReSharper Cache, Closed VS 2017, Restarted VS 2017.

关闭 VS 2017,删除所有 .SUO 文件,重新启动 VS 2017.

Closed VS 2017, Deleted all .SUO files, Restarted VS 2017.

手动删除所有输出,然后是全部重建.

Manually deleted all output followed by a Rebuild All.

这个问题还有其他已知的解决方案吗?

Are there any other known solutions to this issue?

推荐答案

您最近是否更新了 Visual Studio?我最近更新后发生了这种情况.我修复它的方式是在 VS 中进入工具 -> 选项 ->项目和解决方案"并取消选中允许并行项目初始化".现在加载解决方案,希望它现在可以正常加载.一旦一切看起来都很好,关闭解决方案并返回并再次打开该选项.之后就再也没有看到这个问题了.

Did you update Visual Studio recently? I had this happen after updating recently. The way I fixed it was within VS go into Tools -> Options -> "Projects and Solutions" and uncheck "allow parallel project initialization". Now load the solution and hopefully it will load ok now. Once everything looks good again, close the solution and go back and turn the option on again. Haven't seen the issue again after that.

这篇关于VS2017 在源代码中出现大量“无法解析符号"错误,但一切都在构建中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆