开发者

How to specify Visual Studio Team Explorer collection on start-up?

This is with VS and TFS 2010. I have multiple TFS servers and multiple collections. When I launch VS, it connects to the "last use开发者_如何学Pythond" collection. If I had multiple instances of VS open, connected to different collections, whichever exits last appears to "win" as the last used collection. This is annoying.

Really what I want is multiple desktop shortcuts, each set up to force Team Explorer to connect to a specific collection at start-up.

Is this possible?


I don't have the precise solution you asked for, but I feel your pain and this is what I use.

Download and install the Team Foundation Power Tools.

From a Visual Studio Command Prompt run the following command:

tfpt connections

Uncheck the 'Automatically reconnect to last server on startup' checkbox, and close the tool.

Then create a shortcut on your desktop as follows:

devenv /Command Team.ConnecttoTeamFoundationServer

This will open the 'Connect to Team Foundation Server' dialog on startup, where you can then select a server/collection/project from the dialog. It saves the 'wait for connect', 'disconnect', 'choose server' dance.


In newer versions of Visual Studio there is this option which will automatically hide or show Team Explorer on Startup:

Help -> Manage Visual Studio Performance -> Tool Windows -> Start Up

How to specify Visual Studio Team Explorer collection on start-up?

How to specify Visual Studio Team Explorer collection on start-up?

How to specify Visual Studio Team Explorer collection on start-up?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜