I have开发者_JS百科 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.
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
精彩评论