This post serves as a collection of suggestions for cleaning up Visual Studio cache in case of missing/wrong dll errors. It'll be tied to Visual Studio 2015, but the references may refer to other versions as well.

First of all, here's how to clear the Component Cache[1].

1. Close Visual Studio (ensure devenv.exe is not present in the Task Manager)
2. Delete the %USERPROFILE%\AppData\Local\Microsoft\VisualStudio\14.0\ComponentModelCache directory
3. Restart Visual Studio.

You could also need to cleanup your user's temp folder[1:1]. it is usually located under %USERPROFILE%\AppData\Local\Temp.

If all the above fails, you could try the hard route[1:2]. Please, this path is a no-return one, so take precautions accordingly.
Firts, delete the contents from the following folders

%USERPROFILE%\AppData\Local\Microsoft\Team Foundation

Then, open the Visual Studio IDE folder in command prompt and Run devenv /resetuserdata from the Visual Studio IDE folder.
Typical location for 64 bit: C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE
Typical location for 32 bit: C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE



This article is provided as-is without any guarantees.
All the instructions reported in this blog post may or may not work for your environment, setup, or specific problem.
The author may not be responsible for any unwanted result, unexpected behaviour, data loss, or any problem whatsoever.
Please use this knowleldge base article at your own responsibility.

  1. Microsoft's hard route for cleaning Visual Studio Cache. ↩︎ ↩︎ ↩︎