Converting TFS-bound solutions to VS 2008

05/26/08

Permalink 03:28:32 pm, by truewill Email , 212 words, 1856 views   English (US)
Categories: Tips, TFS

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!

Comments, Pingbacks:

Comment from: Steven Kohlmeyer [Visitor] Email · http://www.StevenKohmeyer.com
Actually rebinding in 2008 is much easier, my coworker has done this many times.
PermalinkPermalink 02/26/10 @ 10:45

Leave a comment:

Your email address will not be displayed on this site.
Your URL will be displayed.

Allowed XHTML tags: <p, ul, ol, li, dl, dt, dd, address, blockquote, ins, del, span, bdo, br, em, strong, dfn, code, samp, kdb, var, cite, abbr, acronym, q, sub, sup, tt, i, b, big, small>
(Line breaks become <br />)
(Set cookies for name, email and url)
(Allow users to contact you through a message form (your email will NOT be displayed.))
The name truewill is composed of two other words. What is the SECOND word?

Development Central

Development Central is the blog of Bill Sorensen, a professional software developer. Much of this will relate to C#, .NET, and OOP in general.

Disclaimer
These postings are provided "AS IS" with no warranties and confer no rights.

Search

Categories

Linkblog

b2evolution

contributors

XML Feeds

What is RSS?

Who's Online?

  • Guest Users: 1

powered by b2evolution free blog software