According to this blog the solution is (and Yes it worked for me)
- Close all instances of Visual Studio
- Open the Task Manager and check if any TFS Services are running.
Select each of them and click on End Process Tree
(in my case I did not find any of them to End) - Browse to the folder
%LocalAppData%\Microsoft\Team Foundation\
and then select the folder with your TFS version and go inside theCache
folder.
for example, in my machine the path was%LocalAppData%\Microsoft\Team Foundation\7.0\Cache
and it should be the same on your machine with the difference of the TFS version folder name. - Delete everything in that
Cache
folder. - Start Visual Studio and build the project