Skip to content

Latest commit

 

History

History
68 lines (41 loc) · 2.01 KB

dotnet-workload-restore.md

File metadata and controls

68 lines (41 loc) · 2.01 KB
title description ms.date
dotnet workload restore command
The 'dotnet workload restore' command installs workloads needed for a project or a solution.
09/10/2021

dotnet workload restore

This article applies to: ✔️ .NET 6 SDK and later versions

Name

dotnet workload restore - Installs workloads needed for a project or a solution.

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

[!INCLUDE config-file]

[!INCLUDE disable-parallel]

[!INCLUDE help]

[!INCLUDE ignore-failed-sources]

[!INCLUDE include-previews]

[!INCLUDE interactive]

[!INCLUDE no-cache]

[!INCLUDE skip-manifest-update]

[!INCLUDE source]

[!INCLUDE temp-dir]

[!INCLUDE verbosity]

Example

  • Restore workloads needed by MyApp.csproj:

    dotnet workload restore MyApp.csproj