How to make ReSharper re-evaluate its assembly reference highlighting
This worked for me. There is no need to reload projects. You can do this from within Visual Studio.
Clear the ReSharper cache via ReSharper, Options, General, click 'Clear Caches'.
ReSharper, Windows, select 'Solution Errors'. This will launch the Solution Errors window. At the top of this window, click the button to 'Reanalyze Files With Errors/Warnings'.
Try unloading and then reloading the project.
To unload the project, right-click the project in the solution explorer, and select Unload Project
. Then, right-click the project again and select Reload Project
.
The issue continues to occur occasionally with the latest versions of ReSharper, but the fix seems to work for every version.
You could try clearing the ReSharper cache via menu ReSharper → Options → Environment/General → button Clear Caches.
Except for reinstalling, the only way to successfully clear the caches is to delete the files manually from your AppData directory.
Delete the solution folder that's giving you grief in the following locations:
%LOCALAPPDATA%\JetBrains\ReSharper\v7.1\SolutionCaches\
%LOCALAPPDATA%\JetBrains\Transient\ReSharperPlatformVsXX\vXX\SolutionCaches\
for newer versions.
Note that the version numbers in the paths may be different depending on the ReSharper version that is installed.
The XX
in vXX
and VsXX
represents any number, because there might be multiple folders where the solution cache is stored.