private IEnumerable<string> GetTeamProjectNames() { var structService = new TfsTeamProjectCollection(new Uri(Settings.ServerUrl)).GetService<ICommonStructureService>(); foreach (var p in structService.ListAllProjects()) yield return p.Name; }