12

我知道以前有人问过这个问题,但是没有解决这个问题,而且是去年,所以我想也许有人现在已经找到了解决这个问题的方法。我正在使用带有 SP1 的 VS2010。在安装 SP1 之前没有问题。如果我卸载 re# 它工作正常。我有一个 ASP.Net 网站和一些其他项目。来自其他项目的类无法识别,resharper 建议使用其他项目,所以我这样做了,它把它放在 usings 上,然后 using 也得到一个“无法解析符号”。我已经尝试了他们在 2011 年在这里给出的建议,但没有。如果我删除_Resharper。然后重启vs,它会工作5秒,然后又变红了……

希望从那时起有人找到解决方案...谢谢

编辑:我注意到它使用 Web 服务执行此操作

4

3 回答 3

17

尽管这个问题相当古老,但它今天发生在我身上。我通过进入菜单解决了它Tools -> Options -> Resharper

单击Options并按下Clear Caches按钮,然后按Save

然后只需单击Suspend Now后面的Resume Now按钮以重新启动 Resharper,您的代码应该会再次正常。

编辑:再次发生在我身上。清除缓存有帮助。唯一改变的是“清除缓存”隐藏在 resharper 选项的“常规”选项卡下。

于 2013-11-06T14:18:25.403 回答
0

I was having the same problem with one of my projects. I reported the issue to JetBrains and they requested a VS solution which has the problem.

So, I decided to spend a few hours trying to narrow down the problem as much as possible. I found out that the issue is related to a tool I use which strips out information from .DLLs.

If I don’t strip the .DLLs, Resharper works fine without showing any “cannot resolve symbol” errors. However, If I do strip the .dll, then ReSharper starts to show these “cannot resolve symbol” errors. In both cases, Visual Studio compiles the program and the program runs fine.

I am working with JetBrains to get the issue resolved.

In the mean time, I am able to workaround the problem by using versions of my .DLLs which do not have any information stripped out of them.

于 2014-05-20T23:34:24.860 回答
0
  1. 在 Visual Studio 中,工具 -> 选项 -> Resharper,按立即暂停
  2. 删除文件夹 _ReSharper.*
  3. 工具 -> 选项 -> Resharper,按立即恢复
于 2014-12-01T10:33:53.090 回答