public static List<string> GetProjects(TeamFoundationServer tfsServer)
{
List <string> listProjects = new List<string>();
ICommonStructureService iss = (ICommonStructureService)tfsServer.GetService(typeof(ICommonStructureService));
ProjectInfo[] projectInfo = iss.ListProjects();
foreach (ProjectInfo pi in projectInfo)
{
listProjects.Add (pi.Name);
}
return listProjects;
}
No comments:
Post a Comment