Welcome to EMC Consulting Blogs Sign in | Join | Help

Sola Noah's Blog

...sharing ideas and knowledge

TFS performance issues - manually going offline and online

For some of us that work on a very large solution with loads of projects, TFS can actually be a pain when it needs to synchronize the solution with the server.

Hmm... The good news is that you can take TFS offline manually and some of the benefits are as follows: 

  • If you are taking your laptop off the network and want to work offline without waiting for a solution to discover its offline state.
  • Also, the mechanism of having your next attempt to opening a solution to prompt you to take the solution online as opposed to having to manually choosing the Go Online menu option or toolbar button after the solution has opened.

You can go offline using any of the following:

·         Registry Setting:

Create a *.reg file with the following text in it, and run it before starting Visual Studio.

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\9.0\TeamFoundation\Servers\SERVERNAME]

"Offline"=dword:00000001

"AutoReconnect"=dword:00000000

·         Use the ‘tfpt tweakui’ utility

o    Close Visual Studio

o    Download and install the latest Team Foundation Power Tools

o    Start a Visual Studio Command Prompt

o    Type: tfpt tweakui

o    Open the server

o    Check the [X] Server is offline checkbox

o    Re-open Visual Studio

 

In addition, when you want to go back online, you can either go to "File | Source Control | Go Online", or delete this registry key.

 

Published 29 October 2008 15:27 by Olusola.Noah

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

 

Bhavin B said:

This is an awesome tip :)

We have several occassions when TFS is very slow to respond and opening a solution which has SCC bindings just takes an awfully long time before popping up the take offline dialog or just doesnt work.

I think TFS should provide an option in VS to turn it off.

October 31, 2008 00:22
 

Mark.Mann said:

Excellent, this means that I don't have to constantly reload my solution each time I disconnect from the network or VPN, since VS only switches between online/offline when the solution is loading.

October 31, 2008 10:50

Leave a Comment

(required) 
(optional)
(required) 
Submit
Powered by Community Server (Personal Edition), by Telligent Systems