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 |
This article applies to: ✔️ .NET 6 SDK and later versions
dotnet workload restore
- Installs workloads needed for a project or a solution.
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
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.
-
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.
[!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]
-
Restore workloads needed by MyApp.csproj:
dotnet workload restore MyApp.csproj