TFS

Summary

Contains functionality related to Team Foundation Server or Azure DevOps.

Authentication

TfsAuthenticationAzureActiveDirectory(ICakeContext, string, string) Returns credentials for authentication with an Azure Active Directory. Can only be used with Azure DevOps.
Addin from Cake.Tfs.dll
TfsAuthenticationBasic(ICakeContext, string, string) Returns credentials for basic authentication. Can only be used for on-premise Team Foundation Server configured for basic authentication. See https://www.visualstudio.com/en-us/docs/integrate/get-started/auth/tfs-basic-auth.
Addin from Cake.Tfs.dll
TfsAuthenticationNtlm(ICakeContext) Returns credentials for integrated / NTLM authentication. Can only be used for on-premise Team Foundation Server.
Addin from Cake.Tfs.dll
TfsAuthenticationOAuth(ICakeContext, string) Returns credentials for OAuth authentication. Can only be used with Azure DevOps.
Addin from Cake.Tfs.dll
TfsAuthenticationPersonalAccessToken(ICakeContext, string) Returns credentials for authentication with a personal access token. Can be used for Team Foundation Server and Azure DevOps.
Addin from Cake.Tfs.dll

Pull Request

TfsCreatePullRequest(ICakeContext, TfsCreatePullRequestSettings) Creates a pull request in Team Foundation Server or Azure DevOps using the specified settings.
Addin from Cake.Tfs.dll
TfsPullRequest(ICakeContext, TfsPullRequestSettings) Gets a Team Foundation Server or Azure DevOps pull request using the specified settings.
Addin from Cake.Tfs.dll
TfsPullRequestUsingTfsBuildOAuthToken(ICakeContext) Gets a Team Foundation Server or Azure DevOps pull request using the settings provided by an Azure Pipelines or Team Foundation Server build. Make sure the build has the 'Allow Scripts to access OAuth token' option enabled.
Addin from Cake.Tfs.dll
TfsSetPullRequestStatus(ICakeContext, TfsPullRequestSettings, TfsPullRequestStatus) Sets a status on a Team Foundation Server or Azure DevOps pull request using the specified settings.
Addin from Cake.Tfs.dll
TfsVotePullRequest(ICakeContext, TfsPullRequestSettings, TfsPullRequestVote) Votes for the Team Foundation Server or Azure DevOps pull request using the specified settings.
Addin from Cake.Tfs.dll