ReSharper无法解析符号 [英] ReSharper cannot resolve symbol

查看:97
本文介绍了ReSharper无法解析符号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在构建一个ASP.NET 5(ASP.NET Core 1.0)MVC应用程序.我正在将Visual Studio 2015与ReSharper Ultimate 10.0.2一起使用.

I'm currently building an ASP.NET 5 (ASP.NET Core 1.0) MVC application. I'm using Visual Studio 2015 with ReSharper Ultimate 10.0.2.

我目前有一个2层解决方案,它由一个Www(Web应用程序)和一个Services层组成. Www具有对Services层的引用.

I currently have a 2-tier layer solution which consists of a Www (web application) and a Services layer. The Www has a reference to the Services layer.

当ReSharper被暂停时,Www层中的类能够从Services层中调用对象,如下所示:

When ReSharper is suspended, the classes within the Www layer are able to invoke objects from the Services layer, as shown here:

但是,当启用了ReSharper 时,我收到以下消息:Cannot resolve symbol 'Services',如下所示:

However, when ReSharper is enabled, I get the following message: Cannot resolve symbol 'Services', as shown here:

我尝试过的事情:

  1. Tools -> Options -> ReSharper Ultimate -> Options -> Clear Caches
  2. 清除缓存
  3. %APPDATA%
  4. 中删除JetBrains文件夹
  5. 重新启动Visual Studio 2015
  6. 重新安装ReSharper
  7. 暂停和恢复ReSharper
  8. 添加和删除引用
  9. 重建解决方案
  1. Clearing the caches from Tools -> Options -> ReSharper Ultimate -> Options -> Clear Caches
  2. Remove the JetBrains folder from %APPDATA%
  3. Restarting Visual Studio 2015
  4. Reinstalling ReSharper
  5. Suspending and resuming ReSharper
  6. Adding and removing references
  7. Rebuilding the solution

感谢您的帮助.

推荐答案

在Visual Studio 2017中,我是通过以下方式解决的:

In Visual Studio 2017 I solved in this way:

  • 关闭解决方案
  • 删除".vs"隐藏文件夹
  • 重新打开解决方案并重新构建

这篇关于ReSharper无法解析符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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