TFS Error: Unable to determine the workspace for this solution

Andrei picture Andrei · Apr 1, 2010 · Viewed 26.6k times · Source

I get this error when trying to "Go Online" with a project on a Visual Studio 2010 ALM project.

The project was previously connected to a team project on Team Foundation Server (2010), but I had to reinstall both the SQL Server and the TFS installation and I guess all that information was deleted.

Now, I'm trying to get the project into a new Team Project on TFS, and the TFS gives me this error.

Any ideas?

Thanks.

Answer

Jhixiaus picture Jhixiaus · Dec 19, 2010

What I ended of having to do was re-map the workspace within the Visual Studio 2010 IDE.

  1. From the Visual Studio IDE Navigate to FILE->Source Control->Workspaces
  2. You will see a list of workspaces. Create a new workspace that points to your local project directory and the location of the source control folder on TFS.
  3. It will ask if you want to get the latest version from Source Control, select yes or no depending on which version of your code is the most up to date.