Geeks With Blogs
Yair Segal
| Home |

So I have recently converted all my server to Windows Server 2008 64 bit. I came to find out that only Team Foundation 2010 beta 1 is available in a 64 bit version. I have successfully installed it and started on connecting my VS 2008 client to the server according to this blog:
I can not emphasis the need to run or rerun SP1 for VS 2008 or you will not be able to connect to the 2010 Team Foundation Server.

I than tried to open my solutions and add them to a project on the server. I ran into an interesting problem. On some of my solutions I did not get the “Add Solution to Source Control” option to show.


I came to find out that if you had a solution that was previously added to a team foundation server you can not seemingly disconnect that solution from the old server and re-add it to the new one.
You will have to edit the “.sln” file with a text editor. First remove the read only attribute that is attached to most solution files. Then open it in a text editor and delete the section between the “Global” and the “EndGlobal” tags.

   1: Global

   2:     GlobalSection(TeamFoundationVersionControl) = preSolution

   3:         SccNumberOfProjects = 2

   4:         SccEnterpriseProvider = {4CA58AB2-18FA-4F8D-95D4-32DDF27D184C}

   5:         SccTeamFoundationServer = http://psiserver2:8080/

   6:         SccLocalPath0 = .

   7:         SccWebProject1 = true

   8:         SccProjectUniqueName1 = http://localhost/eShopAdmin2

   9:         SccProjectName1 = eShopAdmin2

  10:         SccLocalPath1 = ..\\..\\..\\..\\..\\..\\inetpub\\wwwroot\\eShopAdmin2

  11:         SccProjectEnlistmentChoice1 = 2

  12:     EndGlobalSection

  13:     GlobalSection(SolutionConfigurationPlatforms) = preSolution

  14:         Debug|Any CPU = Debug|Any CPU

  15:     EndGlobalSection

  16:     GlobalSection(ProjectConfigurationPlatforms) = postSolution

  17:         {6A136601-523A-4F5B-A9E4-E281CB337B43}.Debug|Any CPU.ActiveCfg = Debug|Any CPU

  18:         {6A136601-523A-4F5B-A9E4-E281CB337B43}.Debug|Any CPU.Build.0 = Debug|Any CPU

  19:     EndGlobalSection

  20:     GlobalSection(SolutionProperties) = preSolution

  21:         HideSolutionNode = FALSE

  22:     EndGlobalSection

  23: EndGlobal

Then save the file and reopen the solution with VS2008. You may receive a message notifying you that the solution is no longer attached to a Team Foundation server and asking you if you want to completely remove the solution from source control. Press “Yes” to remove the solution from source control. You can now re-add your solution to your new Team foundation Server.

I still run into a problem when I try to add a new project to the server but per MS that would be fixed in a future update to VS 2008. I now just need to figure out how to delete a project from the new Team Foundation Server.

Posted on Thursday, August 27, 2009 8:35 PM | Back to top

Comments on this post: Add Solution from VS 2008 to Team Foundation Server 2010

No comments posted yet.
Your comment:
 (will show your gravatar)

Copyright © yairsegal | Powered by: