TFS and Visual Studio

For all us Visual Studio users, here is something to keep in mind.

I recently found a problem when trying to "get latest" from TFS for my C# project. The message I was getting was

"Project c:\XXXX\YYY\ZZZZ.csproj, which you are getting from the source control store, already exists. Would you like to overwrite it with the store version, or leave your local copy?"

I found that Visual Studio keeps temp files that it uses to record some design-time settings and other information of web application projects. It stores this content in your user profile.

What I did was clear this cache. I didn't work out exactly which location was the problem cache, but I cleared them all and the problem was solved.

%LOCALAPPDATA%\Microsoft\WebsiteCache
%LOCALAPPDATA%\Temp\VWDWebCache
%LOCALAPPDATA%\Microsoft\Team Foundation\1.0\Cache

Til next time ...