Condividi tramite


IBuildService.StartLaunchOperationAsync Method

Definition

Builds and launches the requested buildable.

public:
 System::Threading::Tasks::Task<Microsoft::VisualStudio::RpcContracts::Build::BuildOperationResult ^> ^ StartLaunchOperationAsync(Guid operationId, System::String ^ buildableId, System::String ^ profileId, System::String ^ debugOption, IProgress<int> ^ buildProgress, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task<Microsoft.VisualStudio.RpcContracts.Build.BuildOperationResult> StartLaunchOperationAsync (Guid operationId, string buildableId, string profileId, string? debugOption, IProgress<int> buildProgress, System.Threading.CancellationToken cancellationToken);
abstract member StartLaunchOperationAsync : Guid * string * string * string * IProgress<int> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.VisualStudio.RpcContracts.Build.BuildOperationResult>
Public Function StartLaunchOperationAsync (operationId As Guid, buildableId As String, profileId As String, debugOption As String, buildProgress As IProgress(Of Integer), cancellationToken As CancellationToken) As Task(Of BuildOperationResult)

Parameters

operationId
Guid

A unique identifier for the operation.

buildableId
String

Id of the BuildableItem to launch.

profileId
String

Id of the LaunchProfile to launch.

debugOption
String

Optional name of a debug option (e.g. StepInto).

buildProgress
IProgress<Int32>

The build progress in percentage.

cancellationToken
CancellationToken

Cancellation token. Cancellation will not stop a debug session that is launched.

Returns

The completion task with a BuildOperationResult.

Remarks

Available only in version BuildService.

Applies to