dotnet-workload-restore - Man Page

Installs workloads needed for a project or a solution.

dotnet workload restore

This article applies to: āœ”ļø .NET 6 Preview SDK and later versions

Synopsis

dotnet workload restore [<PROJECT | SOLUTION>]
    [--configfile <FILE>] [--disable-parallel]
    [--ignore-failed-sources] [--include-previews] [--interactive]
    [--no-cache] [--skip-manifest-update]
    [-s|--source <SOURCE>] [--temp-dir <PATH>] [-v|--verbosity <LEVEL>]

dotnet workload restore -?|-h|--help

Description

The dotnet workload restore command analyzes a project or solution to determine which workloads it needs, then installs any workloads that are missing.

For more information about the dotnet workload commands, see the dotnet workload install command.

Arguments

  • PROJECT | SOLUTION

    The project or solution file to install workloads for. If a file is not specified, the command searches the current directory for one.

Options

Example

  • Restore workloads needed by MyApp.csproj:

    dotnet workload restore MyApp.csproj

Info

.NET