tfs - Get credentials of active Team Explorer from Addin VS 2008 -


i have vs 2008 , team explorer, , tfs.

i open vs 2008 using local administrator (machine\admin). open team explorer connect tfs server using domain user (domain\user). login dialog appears when connect tfs in team explorer (i put login , password).

now, in addin, programatically want connect tfs.

how can credentials (that introduce in login dialog in team explorer) connect tfs ?

reference: how active team foundation server , project add-in http://blogs.msdn.com/b/hippietim/archive/2006/03/29/563988.aspx

have tried:

system.net.networkcredential credential = (system.net.networkcredential)system.net.credentialcache.defaultcredentials; 

aside that, setup account addin run under using :

new networkcredential(username,password,domain)  

system.net.credentialcache.defaultcredentials may pass admin creds though. in case, creating account addin run under still option.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -