6
방법 자세한 내용은 here를 참조하십시오TFS에서 빌드 정의를 얻는 방법은 무엇입니까?
collection-guid 및 project-name을 부여 TFS-API를 사용하여 정의를 구축 얻을 수 있습니다. 이것은 TFS에 관한 최고의 자료 중 하나입니다.
방법 자세한 내용은 here를 참조하십시오TFS에서 빌드 정의를 얻는 방법은 무엇입니까?
collection-guid 및 project-name을 부여 TFS-API를 사용하여 정의를 구축 얻을 수 있습니다. 이것은 TFS에 관한 최고의 자료 중 하나입니다.
private TfsConfigurationServer configurationServer;
configurationServer = TfsConfigurationServerFactory.GetConfigurationServer(uri);
public IList<KeyValuePair<string, Uri>> GetBuildDefinitionListFromProject(Guid collectionId, string projectName)
{
List<IBuildDefinition> buildDefinitionList = null;
List<KeyValuePair<string, Uri>> buildDefinitionInfoList = null;
try
{
buildDefinitionInfoList = new List<KeyValuePair<string, Uri>>();
TfsTeamProjectCollection tfsProjectCollection =
configurationServer.GetTeamProjectCollection(collectionId);
tfsProjectCollection.Authenticate();
var buildServer = (IBuildServer)tfsProjectCollection.GetService(typeof(IBuildServer));
buildDefinitionList = new List<IBuildDefinition>(buildServer.QueryBuildDefinitions(projectName));
}
catch (Exception e)
{
ApplicationLogger.Log(e);
}
if (buildDefinitionList != null && buildDefinitionList.Count > 0)
{
foreach (IBuildDefinition builddef in buildDefinitionList)
{
buildDefinitionInfoList.Add(new KeyValuePair<string, Uri>(builddef.Name, builddef.Uri));
}
}
return buildDefinitionInfoList;
}
TFS 2015 vNext는 어떤 빌드입니까? –