次の方法で共有


IBuildService.LaunchAsync Method

Definition

Builds and launches the requested buildable.

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

Parameters

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 BuildResult.

Applies to