即使在項目構建時,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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章