新安装的TFS 2010位于 http://serverX:8080/tfs
.
带有VS 2008 Pro SP1和VS2008团队资源管理器( no SP )的Windows 7开发人员计算机 . TFS 2008 Service Pack 1对我不起作用 - "None of the products that are addressed by this software update are installed on this computer."
开发人员机器能够通过上述URL浏览TFS站点 .
The Issue 正在尝试将TFS服务器添加到Visual Studio 2008中的“团队资源管理器”窗口中 . 这是显示错误的屏幕截图:
无法连接到此Team Foundation Server . 失败的可能原因包括:Team Foundation Server名称,端口号或协议不正确 . Team Foundation Server处于脱机状态 . 密码已过期或不正确 .
TFS服务器已启动并正常运行 . 防火墙端口是开放的,并且在开发机器上 is accessible via the browser !
Question :如何从VS 2008 Pro连接到TFS 2010服务器?
Resolution
这是我解决这个问题的方法:
Installations
-
安装Visual Studio 2008
如上所述 -
安装Visual Studio Team System 2008 Service Pack 1 Forward Compatibility Update for Team Foundation Server 2010(VS90SP1-KB974558-x86.exe)
Config
-
将TFS服务器添加到团队资源管理器时,您 MUST 指定URL如下:
http://[tfsserver]:[port]/[vdir]/[projectCollection]
-
在上面我的案例中,它是
http://serverX:8080/tfs/AppDev-TestProject
-
您不能简单地添加TFS服务器名称并让VS查找服务器上的所有项目集合 . TFS 2010有一个新URL(默认情况下),VS 2008无法识别如何收集该列表 .
3 回答
看看这篇文章'Connecting VS2008 to any TFS2010 Project Collection' .
这里唯一的问题是,在安装Team Explorer 2008之后,作者没有为Visual Studio 2008做过这样的事情 . 这将在尝试连接时处理无效字符错误消息 .
我很惊讶这里没有人提到Visual Studio 2008 Service Pack 1 Forward Compatibility Update for Team Foundation Server 2010 . 我按照上面的指示,但仍然无法连接;最后安装Forward Compatibility Patch让我连接 .
至 Connect Visual Studio 2008 to a TFS2010 server 这是我连接的原因:安装TFS插件;安装VS2008SP1;安装TFS兼容性更新 . 在我这样做之前我得到了一个错误tf3002以下是一些细节:
2从http://www.microsoft.com/downloads/en/details.aspx?FamilyId=FBEE1648-7106-44A7-9649-6D9F6D58056E安装VS2008SP1 - Visual Studio 2008 Service Pack 1
3安装兼容性更新 - Visual Studio Team System 2008 Service Pack 1 Team Foundation Server 2010的转发兼容性更新,自http://www.microsoft.com/downloads/en/details.aspx?FamilyID=cf13ea45-d17b-4edc-8e6c-6c5b208ec54
当我打开Connect to TFS窗口(工具 - >连接到TFS)时 . 在我输入完整路径之后,例如
http://YourServerName:8080/so/TFSProjects
,包括http:// . 另外我注意到,当在Port#txtbox中键入http://时,它将在Add TFS窗口中正确安装时将被禁用 . 这个问题帮助了我和我希望这个答案有所帮助 .