Share via


IBuildService.BuildProjectAsync Method

Definition

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

public:
 System::Threading::Tasks::Task<bool> ^ BuildProjectAsync(System::String ^ projectFile, System::String ^ projectFileTarget, System::String ^ buildConfiguration, Guid buildContextType, IProgress<Microsoft::VisualStudio::Workspace::IFileContextActionProgressUpdate ^> ^ progress, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task<bool> BuildProjectAsync (string projectFile, string projectFileTarget, string buildConfiguration, Guid buildContextType, IProgress<Microsoft.VisualStudio.Workspace.IFileContextActionProgressUpdate> progress, System.Threading.CancellationToken cancellationToken);
public System.Threading.Tasks.Task<bool> BuildProjectAsync (string projectFile, string? projectFileTarget, string buildConfiguration, Guid buildContextType, IProgress<Microsoft.VisualStudio.Workspace.IFileContextActionProgressUpdate> progress, System.Threading.CancellationToken cancellationToken);
abstract member BuildProjectAsync : string * string * string * Guid * IProgress<Microsoft.VisualStudio.Workspace.IFileContextActionProgressUpdate> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Public Function BuildProjectAsync (projectFile As String, projectFileTarget As String, buildConfiguration As String, buildContextType As Guid, progress As IProgress(Of IFileContextActionProgressUpdate), cancellationToken As CancellationToken) As Task(Of Boolean)

Parameters

projectFile
String

The project file context

projectFileTarget
String

Optional project target

buildConfiguration
String

The build configuration

buildContextType
Guid

The desired build context type

progress
IProgress<IFileContextActionProgressUpdate>

A progress monitor

cancellationToken
CancellationToken

Cancellation token

Returns

Completion task with build succeed result

Applies to