无法导航到插入符号下的符号 - Visual Studio 2015、2017 和 2019

Cannot navigate to the symbol under the caret - Visual Studio 2015,2017 and 2019

过去 3 天我一直在寻找解决方案。请帮忙。

我尝试在 VS 2015、17 和 19 中打开我的解决方案,但每当我尝试进入我的命名空间时,我都会收到错误

"cannot navigate to the symbol under the caret"

None 其中对我有帮助。

失败:

失败:https://developercommunity.visualstudio.com/content/problem/505489/cannot-navigate-to-the-symbol-under-the-caret-3.html

我也删除了我的.vs 文件夹,没有用,有人还说删除你的.user 文件夹。但是我的项目中没有 .user 文件夹。

我也搜索了 dot net 编译器并找到了更新,但更新没有任何区别。

它只在我的 visual studio 上。其他人没有这个问题。

前段时间我遇到了类似的问题,解决方法是在visual studio新建一个MVC项目,然后把源代码文件添加到新项目中。

因此,在安装了 Resharper 的 Visual studio 中重新加载解决方案后,安装 Resharper 解决了我的问题。

https://www.jetbrains.com/resharper/

我用的是试用版

注意:虽然加载需要一秒钟,但请确保 resharper 已分析您的文件。当您重新启动 Visual Studio 并打开您的解决方案时,您应该会在 Visual Studio 的右下角看到一个进度条。