Multiple TFS Servers

I’ve currently got two TFS servers running parallel and sometimes when I switch from one to the other I get scary messages:

2016-10-28_9-11-30

2016-10-28_9-11-41.png

Not to worry.  Don’t panic.  It’s only that the cached TFS files have gotten corrupted.  In my case I’m switching between TFS 2012 and TFS 2015 and for some reason switching from 2015 back to 2012 makes Visual Studio unhappy.

The cache is located at C:\Users{username}\AppData\Local\Microsoft\Team Foundation\5.0\Cache.  The generally recommended solution is to delete the entire contents of that directory.  Caution: as you might imagine, there’s information in there that TFS and Visual Studio use, like the list of checked out files you’ve selected for exclusion in the Pending Changes window.

Also of note, there may be more than one cache directory.  In my case, I have three of them for whatever reason (4.0, 5.0, 6.0).  Turns out it’s my 5.0 that’s in use.  No idea what the other ones are.