IBuildService.GetBuildUpToDateActionContextAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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