Recently I’ve run into an issue connecting Visual Studio into a number of TFS systems simultaneously and also wanting to use Visual Studio for my own development without connecting to TFS. By default Visual Studio tries to automatically connect to the last TFS environment that you were connected. When you don’t have access to that server Visual Studio takes forever to fail that connection and then allow you to either connect to a different server or just open without the connection at all.
To fix the problem I went out and grabbed the Team Foundation Server Power Tools.
After installing those tools. I opened up the Visual Studio Command Prompt:
Start -> All Programs -> Microsoft Visual Studio 2010 -> Visual Studio Tools -> Visual Studio Command Prompt
That brings up the the TFS Connection dialog where you can uncheck:
“Automatically reconnect to last server on startup.”
And that allowed me to open Visual Studio and then choose my Team Server if I was in that environment or to develop locally without waiting for Visual Studio to fail it’s connection to the Team Server.
There may be other ways to deal with this but this worked for me and has greatly reduced my irritation when trying to develop in multiple environments.