UpdateExtensions.RebuildAsync Method

Definition

Overloads

RebuildAsync(IProjectSnapshot, CancellationToken)

Rebuilds the project in the solution.

RebuildAsync(IAsyncQueryable<ISolutionSnapshot>, CancellationToken)

Rebuild the solution in the project.

RebuildAsync(IProjectSnapshot, CancellationToken)

Rebuilds the project in the solution.

C#
public static System.Threading.Tasks.Task<Microsoft.VisualStudio.ProjectSystem.Query.IQueryResults<Microsoft.VisualStudio.ProjectSystem.Query.IProjectSnapshot>> RebuildAsync(this Microsoft.VisualStudio.ProjectSystem.Query.IProjectSnapshot project, System.Threading.CancellationToken cancellationToken);

Parameters

project
IProjectSnapshot

The project to rebuild.

cancellationToken
CancellationToken

A cancellation token to abort the operation.

Returns

A task which is completed when the operation is completed.

Applies to

Visual Studio SDK 2022
Proizvod Verzije
Visual Studio SDK 2022

RebuildAsync(IAsyncQueryable<ISolutionSnapshot>, CancellationToken)

Rebuild the solution in the project.

C#
public static System.Threading.Tasks.Task<Microsoft.VisualStudio.ProjectSystem.Query.IQueryResults<Microsoft.VisualStudio.ProjectSystem.Query.ISolutionSnapshot>> RebuildAsync(this Microsoft.VisualStudio.ProjectSystem.Query.IAsyncQueryable<Microsoft.VisualStudio.ProjectSystem.Query.ISolutionSnapshot> solutions, System.Threading.CancellationToken cancellationToken);

Parameters

solutions
IAsyncQueryable<ISolutionSnapshot>

A collection of solutions.

cancellationToken
CancellationToken

A cancellation token to abort the operation.

Returns

A task which is completed when the operation is completed.

Applies to

Visual Studio SDK 2022
Proizvod Verzije
Visual Studio SDK 2022