CodeLens not showing references

My Solution:

Toggle the CodeLens feature off and then on again.

  • Go into Tools -> Options... -> Text Editor -> All Languages -> CodeLens.
  • Uncheck "Enable CodeLens" option and click OK.
  • Go back into Tools -> Options... -> Text Editor -> All Languages -> CodeLens.
  • Check the "Enable CodeLens" option and click OK.

Note: I've fixed the issue once before by closing the problem .cs file and then reopening it. Closing any referenced files may also be required.

My Problem(s):

Similar to the original poster, CodeLens stopped refreshing references after I made a bunch of refactors. I was seeing stale references to code that didn't exist and I was also seeing the "- references" issue as described in the original post.

My Environment & Specific Scenario:

  • Visual Studio 2015 with Service Pack 2 and Resharper Ultimate 10.0.1
  • I was doing a major overhaul with a ton of refactoring and my project wasn't compilable for an hour or so. Once I could compile the project again, the references weren't working.

Same problem here.
CodeLens works normally with small solutions, but not working with large ones.
And this behavior is accompanied with crash of Alm.Shared.Remoting.RemoteContainer.dll process.
Tried in VS 2013 Update 4 and VS 2013 Update 5 RC.
Solution:
Close all programs and clean %LocalAppData%\Temp folder (or maybe just ALM folder inside it).


A simple solution, which works!

I did try enabling CodeLens in Visual Studio (2015) -->

  1. Quick Launch (Ctrl+Q) Ctrl+Q
  2. Options (CodeLens) CodeLens Options

But, it was enabled :( Then, it did work with: (Closing the programs), Win+R --> %temp% EnterDelete all

nothing but a Win+R