Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Work offline in Team Foundation Server

Is there a way to set "work offline" in TFS without having to try opening a solution, waiting for it to time out, and then having Visual Studio work out that it has failed?

It seems a touch ridiculous that I can't just tick a box to tell it myself, seeing as I'm probably the one most qualified to know when I'm not in the office!

like image 622
tags2k Avatar asked Nov 24 '08 08:11

tags2k


People also ask

Is Team Foundation Server going away?

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. For more information on this change, see Introducing Azure DevOps Server.

How do I get my solution in Visual Studio back online in TFS?

I found a better way: right-click on the solution name right at the top of the Solution Explorer and select the Go Online option. Clicking this allowed me to select the files that had been changed when I was offline and make the solution online again.

How does Team Foundation Server work?

Team Foundation Server (often abbreviated to TFS) is a Microsoft product that provides tools and technologies designed to help teams collaborate and orchestrate their efforts to finish projects or create a product. It enables DevOps capabilities covering the entire application lifecycle.


4 Answers

This extension should solve your problem (for VS 2010):

http://visualstudiogallery.msdn.microsoft.com/425f09d8-d070-4ab1-84c1-68fa326190f4?SRC=Home

like image 109
Bernie Tschirren Avatar answered Oct 20 '22 07:10

Bernie Tschirren


Here's the solution for VS 2008 with TFS

  1. Navigate to Visual Studio Menu ---- File > Source Control > Change Source Control > Click on Solution/Project > Check/uncheck the project checkboxes > Click 'Unbind' button at the top.

This makes your complete solution or the selected project(s) in the solution Offline from the TFS.

  1. When you want to Go Online, follow the same steps and click the button 'Bind'
like image 45
Balaji Birajdar Avatar answered Oct 20 '22 07:10

Balaji Birajdar


Ben Ryan has the regkeys you seek on his blog:

  • http://blogs.msdn.com/benryan/archive/2007/12/12/when-and-how-does-my-solution-go-offline.aspx
  • http://blogs.msdn.com/benryan/archive/2007/12/12/how-to-make-tfs-offline-strictly-solution-based.aspx

Most of these controls are also built into the latest Power Tools:

C:\Users\Richard> tfpt tweakui /?
tfpt tweakui - Enhance how client connects to Team Foundation Server

Allows configuration of how and when the client connects to a 
Team Foundation Server.  This includes client certificates, auto
reconnect, offline, compression, maximum connections, timeouts, 
and bypassing the proxy.
like image 8
Richard Berg Avatar answered Oct 20 '22 08:10

Richard Berg


when I have to work offline I just unplug my ethernet cable and start TFS 2008. It starts me in offline mode. Then plug back in, right-click 'work online' in solution explorer, and TFS will ask you to check in your offline changes.

like image 3
T. Webster Avatar answered Oct 20 '22 09:10

T. Webster