如何在启动时指定Visual Studio Team Explorer集合?

时间:2010-09-27 18:16:51

标签: visual-studio collections tfs team-explorer

这适用于VS和TFS 2010.我有多个TFS服务器和多个集合。当我启动VS时,它连接到“上次使用”的集合。如果我有多个VS打开的实例,连接到不同的集合,那么最后一个出口似乎是“赢”作为最后使用的集合。这很烦人。

我真正想要的是多个桌面快捷方式,每个快捷方式都设置为强制Team Explorer在启动时连接到特定的集合。

这可能吗?

2 个答案:

答案 0 :(得分:3)

我没有你要求的精确解决方案,但我感觉到你的痛苦,这就是我的用法。

下载并安装Team Foundation Power Tools

从Visual Studio命令提示符运行以下命令:

tfpt connections

取消选中“启动时自动重新连接到上次服务器”复选框,然后关闭该工具。

然后在桌面上创建一个快捷方式,如下所示:

devenv /Command Team.ConnecttoTeamFoundationServer

这将在启动时打开“连接到Team Foundation Server”对话框,然后您可以从对话框中选择服务器/集合/项目。它保存了“等待连接”,“断开连接”,“选择服务器”的舞蹈。

答案 1 :(得分:1)

在较新版本的Visual Studio there is this option which will automatically hide or show Team Explorer on Startup中:

帮助 - >管理Visual Studio性能 - >工具Windows - >启动

enter image description here

enter image description here

enter image description here