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.