Home > SharePoint or Custom Development > Connecting Visual Studio 2008 to TFS 2010

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

clip_image001

To resolve this:

· Close Visual Studio! (Any and all versions)

· Ensure that you are running VS 2008 with Service Pack 1

· Download http://www.microsoft.com/downloads/details.aspx?FamilyID=cf13ea45-d17b-4edc-8e6c-6c5b208ec54d&displaylang=en

· 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

Advertisement
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

Gravatar
WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.