Visual Studio 2008:无法连接到已知良好的 TFS 2010 [英] Visual Studio 2008: Can't connect to known good TFS 2010

查看:29
本文介绍了Visual Studio 2008:无法连接到已知良好的 TFS 2010的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

新安装的 TFS 2010 位于 http://serverX:8080/tfs.

带有 VS 2008 Pro SP1 和 VS2008 Team Explorer(无 SP)的 Windows 7 开发人员机器.

问题:如何从 VS 2008 Pro 连接到 TFS 2010 服务器?

分辨率

我是这样解决这个问题的:

安装

配置

  • 将 TFS 服务器添加到团队资源管理器时,您必须指定如下 URL:http://[tfsserver]:[端口]/[vdir]/[projectCollection]
  • 在我上面的例子中,它是 http://serverX:8080/tfs/AppDev-TestProject
  • 您不能简单地添加 TFS 服务器名称并让 VS 查找服务器上的所有项目集合.TFS 2010 有一个新 URL(默认情况下),而 VS 2008 无法识别如何收集该列表.

解决方案

查看这篇文章 '将 VS2008 连接到任何 TFS2010 项目集合'.

这里唯一的问题是作者没有提到您需要安装/重新安装 Service Pack 1 'Microsoft Visual Studio 2008 Service Pack 1(安装程序)' 在安装 Team Explorer 2008 后适用于 Visual Studio 2008.这将处理尝试连接时出现无效字符错误消息.

A freshly installed TFS 2010 is at http://serverX:8080/tfs.

A Windows 7 developer machine with VS 2008 Pro SP1 and the VS2008 Team Explorer (no SP). The TFS 2008 Service Pack 1 didn't work for me - "None of the products that are addressed by this software update are installed on this computer."

The developer machine is able to browse the TFS site at the above URL.

The Issue is around trying to add the TFS server into the Team Explorer window in Visual Studio 2008. Here's a screenshot showing the error:

unable to connect to this Team Foundation Server. Possible reasons for failure include: The Team Foundation Server name, port number or protocol is incorrect. The Team Foundation Server is offline. Password is expired or incorrect.

The TFS server is up and running properly. Firewall ports are open, and is accessible via the browser on the dev machine!!

larger image

Question: how can you connect from VS 2008 Pro to a TFS 2010 server?

Resolution

Here's how I solved this problem:

Installations

Config

  • when adding a TFS server to Team Explorer, you MUST specify the URL as such: http://[tfsserver]:[port]/[vdir]/[projectCollection]
  • in my case above, it was http://serverX:8080/tfs/AppDev-TestProject
  • you cannot simply add the TFS server name and have VS look for all Project Collections on the server. TFS 2010 has a new URL (by default) and VS 2008 doesn't recognize how to gather that list.

解决方案

Check out this article 'Connecting VS2008 to any TFS2010 Project Collection'.

The only catch here is that the author didn't mention that you need to install/reinstall Service Pack 1 'Microsoft Visual Studio 2008 Service Pack 1 (Installer)' for Visual Studio 2008 after installing Team Explorer 2008. This will take care of the invalid characters error message when trying to connect.

这篇关于Visual Studio 2008:无法连接到已知良好的 TFS 2010的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆