35

I'm using VS 2008 with Resharper 5.1

Al of a sudden, Resharper shows all classes etc I use in red. As if I didn't refecrence the correct project/dll.

BUT: everything is referenced, and the code compiles.

What is going on and how can I solve this?

I already tried this: deleted the _ReSharper-folder and deleted the 5.1.ReSharper.user-file

2
  • Do you have solution-wide analysis enabled, or not? Did you restart Visual Studio (or at least close and reopen your solution) after deleting the _ReSharper.* folder?
    – Joe White
    May 18, 2011 at 6:48
  • No, I did not restart VS. But apparantly, I had to delete the .suo-file as wel.
    – Natrium
    May 18, 2011 at 7:02

2 Answers 2

42

The solution that worked for me was to clear re-sharper cache and suspend & resume re-sharper.

Visual Studio > Tools > Options > Re-sharper > General > Options > General > Clear Caches

Visual Studio > Tools > Options > Re-sharper > General > Suspend Now > Resume Now
4
  • agreed, the .suo was not enough to fix the issue but doing the above worked like a charm
    – doodlleus
    Jun 20, 2016 at 15:36
  • 1
    I can't find the second option in ReSharper May 24, 2017 at 13:38
  • 2
    Clear Caches PLUS deleting the .vs folder worked for me
    – axk
    May 20, 2019 at 16:39
  • While maybe the other one might work for some. This should be the answer
    – Chris
    Sep 2, 2020 at 15:55
25

Try deleting the .suo file as well.

2
  • 1
    Worked for me even in VS 2013! The only difference is there is no _ReSharper folder.
    – Jordan
    Jun 12, 2014 at 18:06
  • And for me in Visual Studio 2019.
    – Tiny
    Apr 4, 2019 at 9:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.