Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Uri configurationServerUri = new Uri("http://your-server:8080/tfs");
- TfsConfigurationServer configurationServer = TfsConfigurationServerFactory.GetConfigurationServer(configurationServerUri);
- ITeamProjectCollectionService tpcService = configurationServer.GetService<ITeamProjectCollectionService>();
- foreach (TeamProjectCollection tpc in tpcService.GetCollections())
- {
- List.add(tpc .name);
- }
Add Comment
Please, Sign In to add comment