即使在项目构建时,ReSharper 也“无法解析符号” - ReSharper “Cannot resolve symbol” even when project builds

问题:

My Tools:我的工具:

Visual Studio 2012 Ultimate + Update 1 Visual Studio 2012 Ultimate + 更新 1

ReSharper v7.1.25.234 ReSharper v7.1.25.234

My Solution Build Status: Build Successfully我的解决方案构建状态:构建成功

But when I install ReSharper and ReSharper code analysis is enable, many keywords of my code are red with this error:但是当我安装 ReSharper 并启用 ReSharper 代码分析时,我的代码的许多关键字都是红色的,并出现此错误:

"Cannot resolve symbol XXX" “无法解析符号 XXX”

在此处输入图片说明


Another picture of my project >>我的项目的另一张照片>>

The ReSharper “CANNOT RESOLVE SYMBOL” errors are everywhere, but my project build process is successfully, and it works correctly. ReSharper“无法解析符号”错误无处不在,但我的项目构建过程成功,并且工作正常。

在此处输入图片说明

Additional Note: If I disable ReSharper Code Analysis, my project will be Normal, but I want to use ReSharper code analysis.附加说明:如果我禁用 ReSharper 代码分析,我的项目将是正常的,但我想使用 ReSharper 代码分析。


I tried ReSharper → OptionsGeneralClear Cache .我试过ReSharper → OptionsGeneralClear Cache But I still have this problem!但是我还是有这个问题!


  • One month ago, I got these errors when I uninstalled Visual Studio 2012 RC and installed VS 2012 RTM.一个月前,我在卸载 Visual Studio 2012 RC 并安装 VS 2012 RTM 时遇到了这些错误。

  • I've already uninstalled and installed ReSharper again.我已经卸载并再次安装了 ReSharper。 But I have this problem yet!但是我还有这个问题!

  • My solution has five projects >> two loaded projects (main project + resource project) and three unloaded projects我的解决方案有五个项目>>两个加载的项目(主项目+资源项目)和三个卸载的项目


I realize that my Visual Studio also has bigger problems (More information on Stack Overflow)我意识到我的 Visual Studio 也有更大的问题(有关堆栈溢出的更多信息)

  • I can't add any reference to my projects (even inside new solutions and new projects)我无法添加对我的项目的任何引用(即使在新解决方案和新项目中)

  • I can't install any package (by "Packet Manager Console" or Manage NuGet Package)我无法安装任何包(通过“包管理器控制台”或管理 NuGet 包)

  • I can't update any package (by "Packet Manager Console" or Manage NuGet Package)我无法更新任何包(通过“包管理器控制台”或管理 NuGet 包)

I've done a lot of suggestions (of myself and others)我做了很多建议(对我自己和其他人)

  • Re-resister some DLL files重新抵抗一些 DLL 文件

  • Using some windows and registry repair tools使用一些 Windows 和注册表修复工具

  • Remove ReSharper删除 ReSharper

  • Repair Visual Studio修复 Visual Studio

  • and...和...

But I could not solve it.但我无法解决它。

I'm thinking of installing a new Windows :(我正在考虑安装一个新的 Windows :(


What is wrong, and how can I fix it?出了什么问题,我该如何解决?


解决方案:

参考一: https://stackoom.com/question/13viB
参考二: ReSharper “Cannot resolve symbol” even when project builds
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章