The following method retrieves the TeamProject over TFS API:
private TeamProject GetTeamProject()
{
VersionControlServer versionControl = (VersionControlServer)server.GetService(typeof(VersionControlServer));
TeamProject teamProject = versionControl.GetTeamProject("ProjectName");
return teamProject;
}
No comments:
Post a Comment