0

I have a VS addin in C#.

I want detect if a solution is offline (about TFS) for show warning to user.

I have references like Microsoft.Teamfoundation.Client and others.

Kiquenet
  • 14,494
  • 35
  • 148
  • 243

1 Answers1

1

The server's offline state is stored in a registry value named Offline. You should note that the online/offline state of a server is only checked for when the solution is opened.

It is stored under the registry key:

HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\9.0\TeamFoundation\Servers\<tfs server name>\Offline
granth
  • 8,919
  • 1
  • 43
  • 60