Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Prevent Visual Studio from connecting to Team Foundation Server on startup

Visual Studio automatically tries to connect to Team Foundation Server on startup but sometimes when you frequently change TFS servers it takes a long time for Visual Studio to timeout on its attempt to connect to the last used TFS.

How can this be disabled?

like image 603
Matija Grcic Avatar asked Dec 11 '12 08:12

Matija Grcic


People also ask

Is Team Foundation Server part of Visual Studio?

On September 10, 2018, Microsoft renamed Visual Studio Team Services (VSTS) to Azure DevOps Services. With Azure DevOps Server 2019, Microsoft is renaming Visual Studio Team Foundation Server to Azure DevOps Server.

What is Team Foundation Server Why did you use it?

Source Code Control: Team Foundation Server is a Version Control System. It enables the team to manage all source files or artifacts for a project. It allows the developers to store the files in a centralized repository (database). It helps to maintain different versions of source code.

Can Visual Studio Code connect to TFS?

Q: Does the Visual Studio Code extension support Team Foundation Server (on-premises)? A: Yes! With version 1.103. 0 the extension supports Team Foundation Server 2015 Update 2 and later.


1 Answers

You can set AutoLoadServer registry key to 0.

Navigate to Team Foundation key

HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0\TeamFoundation

Add a registry key AutoLoadServer of type REG_DWORD

enter image description here

Set the value to 0 so that VS doesn't connect to TFS automatically on startup

enter image description here

Or create a *.reg file with the following:

Visual Studio 2010

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0\TeamFoundation] "AutoLoadServer"=dword:00000000


Visual Studio 2013

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\12.0\TeamFoundation] "AutoLoadServer"=dword:00000000


Visual Studio 2015

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\14.0\TeamFoundation] "AutoLoadServer"=dword:00000000

like image 131
Matija Grcic Avatar answered Sep 24 '22 17:09

Matija Grcic