Partilhar via


IBuildService2.BuildAsync Método

Definição

Criar um projeto incrementalmente invocando ações de contexto de build de um provedor

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)

Parâmetros

buildRequest
BuildRequest

A entidade de solicitação de build

progress
IProgress<IFileContextActionProgressUpdate>

Um monitor de progresso

cancellationToken
CancellationToken

Token de cancelamento opcional

Retornos

Informações sobre o build incremental

Aplica-se a