Partager via


IBuildService2.BuildAsync Méthode

Définition

Générer un projet de manière incrémentielle en appelant des actions de contexte de génération à partir d’un fournisseur

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)

Paramètres

buildRequest
BuildRequest

Entité de demande de build

progress
IProgress<IFileContextActionProgressUpdate>

Un moniteur de progression

cancellationToken
CancellationToken

Jeton d’annulation facultatif

Retours

Informations sur la build incrémentielle

S’applique à