TFS mapping gone in solution explorer, but listed correct at Team Explorer

Can Poyrazoğlu picture Can Poyrazoğlu · Sep 13, 2014 · Viewed 8.7k times · Source

I have a team project that I was working on, but today I opened Visual Studio 2013 (update 2) and my solution, just to see that TFS options (check in, get latest menu options, along with the lock and + signs next to files) are gone. The solution is just like a local solution. I haven't done anything. When I go to team options, I can see that it is mapped to the correct path and I'm on the correct workspace. I've removed the mapping, deleted the solution locally (I didn't have any pending changes) and remapped the solution from TFS. Got the latest version but still no mapping in solution explorer. Restarted Visual Studio many times (obviously), but no avail. I can get the latest from team explorer though. What could be the cause and how can I solve this problem?

Answer

You need to open "File | Source Control | Change Bindings". If the files are in the correct folder you should see a bunch of red squiggles under the mappings.

  1. Unbind all of the projects and the solution
  2. Rebind all of the projects and the solution

That should solve the issue.