Click here to Skip to main content
15,894,825 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How can i get a list of all workspaces for the current user on the current computer using TFS API?
Posted

Find following link useful...

http://www.woodwardweb.com/teamprise/000333.html[^]



HTH
 
Share this answer
 
i found the solution using the TFS API:

NetworkCredential networkCredential = new NetworkCredential("username", "password", "domainName");
TeamFoundationServer tfs = new TeamFoundationServer("TFS Server Name", networkCredential);
VersionControlServer versionControl = (VersionControlServer)tfs.GetService(typeof(VersionControlServer));
Workspace[] retVal = versionControl.QueryWorkspaces(null, "username", "computername");
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900