Did you move your TF enlistment from one path to another? Don't panic!
So, you decided to move your enlistment folder from location in your computer and now you are seeing the following error:
Unable to determine the workspace. You may be able to correct this by running 'tf workspaces /collection:TeamProjectCollectionUrl'.
Follow the next 5 steps to fix it:
- Open a "Developer Command Prompt for VS2012".
- Type "tf workspaces".
- Copy the name of your workspace.
- Type "tf workspace <your workspace name here>"
- Update the "Local Folder" with the new location of your enlistment.
Wallah! Now it is fixed!