Connecting Visual Studio 2008 to TFS 2010
Though unrelated to SharePoint 2010, I felt it needed to discuss my unique findings with TFS 2010 implementation with others. With the new TFS 2010 out, and as robust and great as it is, you still have old projects that you still need to maintain in VS2008. The problem is getting connected to TFS 2010 isn’t that easy because you now have a forward slash in your path. I will show you what I did to connect my VS2008 environment to TFS 2010 (Binding existing projects is a different story and the next blog)
Our Environment:
We have two TFS servers:
· CSTFS1 – Visual Studio Team Foundation Server 2008
· CSTFS01 – Visual Studio Team Foundation Server 2010
· CSDEV1 – Our Development Environment with Remote Desktop Services (Formally Terminal Services) running VS2008 (and soon 2010)
We tried to connect just simply, however we got the following message:
TF31002: Unable to connect to this Team Foundation Server: CSTFS01 Team Foundation Server URL: http://cstfs01:8080
To resolve this:
· Close Visual Studio! (Any and all versions)
· Ensure that you are running VS 2008 with Service Pack 1
· You must specify the URL as such: http://cstfs01:8080/tfs (or http://[TFSServer]:8080/[VirtualDirectory]/[ProjectCollection])
· Open regedit.exe and navigate to: [HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\9.0\TeamFoundation\Servers]
o Add this string: “cstfs01″=http://cstfs01:8080/tfs (replacing your server names with your own)
· Open Visual Studio 2008, and point to your new TFS Server, and select your projects.
I created a text file (c:\add_tfs2010.reg) with the following text, and had all of my users execute it with administrative privliges:
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\9.0\TeamFoundation\Servers]
“cstfs01″=”http://cstfs01:8080/tfs“