IBuildService.LaunchAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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).
- cancellationToken
- CancellationToken
Cancellation token. Cancellation will not stop a debug session that is launched.
Returns
The completion task with a BuildResult.