Share via


IBuildService2.BuildAsync Method

Definition

Build a project incrementally by invoking a build context actions from a provider

public:
 System::Threading::Tasks::Task<Microsoft::VisualStudio::Workspace::Build::BuildProjectIncrementalResult ^> ^ BuildAsync(Microsoft::VisualStudio::Workspace::Build::BuildRequest ^ buildRequest, IProgress<Microsoft::VisualStudio::Workspace::IFileContextActionProgressUpdate ^> ^ progress, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task<Microsoft.VisualStudio.Workspace.Build.BuildProjectIncrementalResult> BuildAsync (Microsoft.VisualStudio.Workspace.Build.BuildRequest buildRequest, IProgress<Microsoft.VisualStudio.Workspace.IFileContextActionProgressUpdate> progress, System.Threading.CancellationToken cancellationToken);
abstract member BuildAsync : Microsoft.VisualStudio.Workspace.Build.BuildRequest * IProgress<Microsoft.VisualStudio.Workspace.IFileContextActionProgressUpdate> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.VisualStudio.Workspace.Build.BuildProjectIncrementalResult>
Public Function BuildAsync (buildRequest As BuildRequest, progress As IProgress(Of IFileContextActionProgressUpdate), cancellationToken As CancellationToken) As Task(Of BuildProjectIncrementalResult)

Parameters

buildRequest
BuildRequest

The build request entity

progress
IProgress<IFileContextActionProgressUpdate>

A progress monitor

cancellationToken
CancellationToken

Cancellation token

Returns

Info about the incremental build

Applies to