Is there a .NET API equivalent to the “Build 2.0” REST API for TFS 2015?

前端 未结 1 1991
傲寒
傲寒 2021-02-14 00:41

The REST API Reference for VS Team Services and TFS page separates the \"Build 1.0\" and \"Build 2.0\" APIs.

It seems like such a difference also exists in the .NET API

1条回答
  •  广开言路
    2021-02-14 01:12

    You're looking for:

     Microsoft.TeamFoundation.Build.WebApi.BuildDefinition
    

    in:

     Microsoft.TeamFoundation.Build2.WebApi, Version=14.0.0.0
    

    Which can be accessed through:

     Microsoft.TeamFoundation.Build.WebApi.BuildHttpClient
    

    Simplest way to add it to your project is using the Nuget Package:

    PM> Install-Package Microsoft.TeamFoundationServer.ExtendedClient
    

    0 讨论(0)
提交回复
热议问题