ReSharper无法解析符号 [英] ReSharper cannot resolve symbol
问题描述
我目前正在构建一个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:
我尝试过的事情:
- 从
Tools -> Options -> ReSharper Ultimate -> Options -> Clear Caches
清除缓存
- 从
%APPDATA%
中删除 - 重新启动Visual Studio 2015
- 重新安装ReSharper
- 暂停和恢复ReSharper
- 添加和删除引用
- 重建解决方案
JetBrains
文件夹
- Clearing the caches from
Tools -> Options -> ReSharper Ultimate -> Options -> Clear Caches
- Remove the
JetBrains
folder from%APPDATA%
- Restarting Visual Studio 2015
- Reinstalling ReSharper
- Suspending and resuming ReSharper
- Adding and removing references
- Rebuilding the solution
感谢您的帮助.
推荐答案
在Visual Studio 2017中,我是通过以下方式解决的:
In Visual Studio 2017 I solved in this way:
- 关闭解决方案
- 删除".vs"隐藏文件夹
- 重新打开解决方案并重新构建
这篇关于ReSharper无法解析符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!