Open sandboxFocus

Method ReloadAsync

ReloadAsync(bool, CancellationToken)

Asynchronously reloads all projects in the current workspace.

Declaration
public Task<Workspace> ReloadAsync(bool restore = true, CancellationToken cancellationToken = default)
Parameters
Type Name Description
bool restore

Indicates whether to run dotnet restore before loading projects. The default is true.

CancellationToken cancellationToken

A cancellation token.

Returns
Type Description
Task<Workspace>

The current workspace instance after reloading.

See Also