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:

  1. Open a "Developer Command Prompt for VS2012".
  2. Type "tf workspaces".
  3. Copy the name of your workspace.
  4. Type "tf workspace <your workspace name here>"
  5. Update the "Local Folder" with the new location of your enlistment.

Wallah! Now it is fixed!