IBuildService.GetBuildUpToDateActionContextAsync Method

Definition

Return a valid BuildUpToDateActionContext from a project file

public System.Threading.Tasks.Task<Microsoft.VisualStudio.Workspace.Build.BuildUpToDateActionContext> GetBuildUpToDateActionContextAsync (string projectFile, string projectFileTarget, string targetProjectBuildConfiguration, System.Threading.CancellationToken cancellationToken = default);
public System.Threading.Tasks.Task<Microsoft.VisualStudio.Workspace.Build.BuildUpToDateActionContext?> GetBuildUpToDateActionContextAsync (string projectFile, string? projectFileTarget, string? targetProjectBuildConfiguration, System.Threading.CancellationToken cancellationToken = default);
abstract member GetBuildUpToDateActionContextAsync : string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.VisualStudio.Workspace.Build.BuildUpToDateActionContext>
Public Function GetBuildUpToDateActionContextAsync (projectFile As String, projectFileTarget As String, targetProjectBuildConfiguration As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of BuildUpToDateActionContext)

Parameters

projectFile
String

The project file context

projectFileTarget
String

Optional project target

targetProjectBuildConfiguration
String

Optional target project build configuration

cancellationToken
CancellationToken

Optional cancellation token

Returns

Null or a valid BuildUpToDateActionContext for a project file

Applies to