Converting TFS-bound solutions to VS 2008

05/26/08

Converting TFS-bound solutions to VS 2008

I had to convert some solutions from Visual Studio 2005 to 2008 recently; these were bound to Team Foundation Server (TFS) 2005 source control, and this created some issues. (I was using the TFS 2008 client with VS 2008 to access a TFS 2005 server; I’m not sure if that had anything to do with the issue.)

After conversion, Visual Studio 2008 was unable to find the projects (it thought they were located in the root folder of the TFS project).

Fix:

  1. In Visual Studio 2008 (using the 2008 TFS client), check out the .sln file. (Check it out for edit in Source Control Explorer; do not open it.)
  2. Open the .sln file in a text editor (NOT Visual Studio).
  3. Find “GlobalSection(TeamFoundationVersionControl)”
  4. Delete everything from that line to the first EndGlobalSection, inclusive. Do not delete the other GlobalSections.
  5. Save the .sln file and close the text editor window.
  6. Open the .sln in Visual Studio 2008 and let the wizard convert it.

The conversion process will recreate the TFS section correctly.

Later, we also had to rebind some solutions using File / Source Control / Change Source Control from the Visual Studio menus.

I’m wondering if unbinding the solution in VS 2005 and rebinding it in 2008 might have been easier.

As usual, your mileage may vary. Use this (and all tips) at your own risk!


Your Host: webmaster@truewill.net
Copyright © 2000-2013 by William Sorensen. All rights reserved.