开发者

Detect if Solution is offline using TFS and vS 2008 and C#

开发者 https://www.devze.com 2023-02-07 14:02 出处:网络
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开发者_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
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号