0
Я называю IBuildServer.QueryBuilds(), и посмотреть на возвращенном IBuildDetail
с:IBuildDetail.RequestedFor не получает заселен после вызова QueryBuilds()
- TFS2010: Они заполняется пользователь псевдонимами.
- TFS2012: они равны нулю.
Как я могу получить имена пользователей в TFS2012?
var collection = new TfsTeamProjectCollection(new Uri(_txtCollection.Text));
var buildServer = collection.GetService<IBuildServer>();
var spec = buildServer.CreateBuildDetailSpec(Settings.Default.ProjectName);
spec.QueryOptions = QueryOptions.Definitions;
spec.QueryOrder = BuildQueryOrder.StartTimeDescending;
spec.InformationTypes = null;
return buildServer.QueryBuilds(spec).Builds;