public List<string> ListAllProjects() { TeamFoundationServer teamFoundationServer = TeamFoundationServerFactory.GetServer(@"http:\\ld-tfs08sp1:8080\\"); teamFoundationServer.Authenticate(); WorkItemStore workItemStore = new WorkItemStore(@"http:\\ld-tfs08sp1:8080\\"); List<string> list = new List<string>(); foreach (Project pr in workItemStore.Projects) { list.Add(pr.Name); } if (list.Count == 0) list.Add("Not Found"); return list; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)