dotnet-workload-restore(1)
π dotnet-workload-restore β the manual page, but make it cute π
okay bestie, welcome to the dotnet-workload-restore(1) manual page β¨ it lives in the .NET Documentation section of the manual, and it's giving "let me install exactly what your project needs and nothing else" π
This article applies to: βοΈ .NET 6 SDK and later versions π«Ά
πΈ NAME πΈ
dotnet-workload-restore β installs workloads needed for a project or a solution. literally it just gets you set up, no drama π
β¨ 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>] [--version <VERSION>]
dotnet workload restore -?|-h|--help
the first one is the "do the thing" form, the second one is the "bestie explain the thing" form π¦
π DESCRIPTION π
So. The dotnet workload restore command looks at a project or a solution, figures out which workloads it needs, and then installs any workloads that are missing. it's like a vibe check for your dependencies, but it actually fixes them β¨
For more information about the dotnet workload commands, see the dotnet workload install command. iykyk, they're cousins π
π¦ 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. so if you're lazy (valid), it just sniffs around where you're standing π
π OPTIONS π
--configfile <FILE>β the NuGet configuration file (nuget.config) to use. If specified, only the settings from this file will be used. If not specified, the hierarchy of configuration files from the current directory will be used. For more information, see Common NuGet Configurations. one file only, no blending, she's monogamous π--disable-parallelβ prevents restoring multiple projects in parallel. one at a time, single file line, main character energy π-?|-h|--helpβ prints out a description of how to use the command. the "help me help you" flag π«Ά--ignore-failed-sourcesβ treats package source failures as warnings. oh that source flopped? cute, we move on π--include-previewsβ allows prerelease workload manifests. living on the edge, respect π₯--interactiveβ allows the command to stop and wait for user input or action. For example, to complete authentication. it'll literally pause and be like "bestie, type your password" π--no-cacheβ prevents caching of packages and http requests. no hoarding, fresh every time β¨--skip-manifest-updateβ skip updating the workload manifests. The workload manifests define what assets and versions need to be installed for each workload. fyi the manifests are the little blueprint of what assets and versions go with each workload π§-s|--source <SOURCE>β specifies the URI of the NuGet package source to use. This setting overrides all of the sources specified in thenuget.configfiles. Multiple sources can be provided by specifying this option multiple times. she overrides EVERYTHING in the config files, no cap π--temp-dir <PATH>β specify the temporary directory used to download and extract NuGet packages (must be secure). must be secure, fr fr, don't put this somewhere cursed π-v|--verbosity <LEVEL>β sets the verbosity level of the command. Allowed values areq[uiet],m[inimal],n[ormal],d[etailed], anddiag[nostic]. The default isminimal. For more information, see<xref:Microsoft.Build.Framework.LoggerVerbosity>. the brackets mean you can just type the short letter, iconique π--versionβ the workload set version to install or update to. If you specify the workload-set version inglobal.json, you can't use the--versionoption to specify the workload-set version. To make it possible to use the--versionoption in that case, run the command outside of the path containing theglobal.jsonfile. Available since 8.0.400 SDK. For more information, see .NET SDK workload sets. so ifglobal.jsonalready claimed the version, she's not gonna let you double-dip β step outside that path and then you can π
π Example π
- Restore workloads needed by
MyApp.csproj:
dotnet workload restore MyApp.csproj
that's it. that's the whole thing. ate and left no crumbs π
okay that's the whole page bestie, you're officially a workload-restore girlie now π
this page is dated 2025-06-13 and it's page dotnet-workload-restore(1) of the manual β mwah, see you in the next one, take care of yourself ππ¦β¨
π¦ where this page comes from
- alpine 3.24: dotnet-doc 10.0.303-r2 Β· MIT
- centos-stream 10: dotnet-host 11.0.0~rc.2.26504.105-0.10.el10 Β· 0BSD AND Apache-2.0 AND (Apache-2.0 WITH LLVM-exception) AND APSL-2.0 AND BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause AND BSL-1.0 AND bzip2-1.0.6 AND CC0-1.0 AND CC-BY-3.0 AND CC-BY-4.0 AND CC-PDDC AND CNRI-Python AND EPL-1.0 AND GPL-2.0-only AND (GPL-2.0-only WITH GCC-exception-2.0) AND GPL-2.0-or-later AND GPL-3.0-only AND ICU AND ISC AND LGPL-2.1-only AND LGPL-2.1-or-later AND LicenseRef-Fedora-Public-Domain AND LicenseRef-ISO-8879 AND MIT AND MIT-Wu AND MS-PL AND MS-RL AND NCSA AND OFL-1.1 AND OpenSSL AND Unicode-DFS-2015 AND Unicode-DFS-2016 AND W3C-19980720 AND X11 AND Zlib
- centos-stream 9: dotnet-host 11.0.0~rc.2.26504.105-0.11.el9 Β· 0BSD AND Apache-2.0 AND (Apache-2.0 WITH LLVM-exception) AND APSL-2.0 AND BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause AND BSL-1.0 AND bzip2-1.0.6 AND CC0-1.0 AND CC-BY-3.0 AND CC-BY-4.0 AND CC-PDDC AND CNRI-Python AND EPL-1.0 AND GPL-2.0-only AND (GPL-2.0-only WITH GCC-exception-2.0) AND GPL-2.0-or-later AND GPL-3.0-only AND ICU AND ISC AND LGPL-2.1-only AND LGPL-2.1-or-later AND LicenseRef-Fedora-Public-Domain AND LicenseRef-ISO-8879 AND MIT AND MIT-Wu AND MS-PL AND MS-RL AND NCSA AND OFL-1.1 AND OpenSSL AND Unicode-DFS-2015 AND Unicode-DFS-2016 AND W3C-19980720 AND X11 AND Zlib
- fedora 43: dotnet-host 10.0.12-1.fc43
- fedora 43: dotnet-host 11.0.0~rc.1.26425.128-0.10.fc43 Β· 0BSD AND Apache-2.0 AND (Apache-2.0 WITH LLVM-exception) AND APSL-2.0 AND BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause AND BSL-1.0 AND bzip2-1.0.6 AND CC0-1.0 AND CC-BY-3.0 AND CC-BY-4.0 AND CC-PDDC AND CNRI-Python AND EPL-1.0 AND GPL-2.0-only AND (GPL-2.0-only WITH GCC-exception-2.0) AND GPL-2.0-or-later AND GPL-3.0-only AND ICU AND ISC AND LGPL-2.1-only AND LGPL-2.1-or-later AND LicenseRef-Fedora-Public-Domain AND LicenseRef-ISO-8879 AND MIT AND MIT-Wu AND MS-PL AND MS-RL AND NCSA AND OFL-1.1 AND OpenSSL AND Unicode-DFS-2015 AND Unicode-DFS-2016 AND W3C-19980720 AND X11 AND Zlib
- fedora 44: dotnet-host 10.0.12-1.fc44
- fedora 44: dotnet-host 10.0.4-1.fc44 Β· 0BSD AND Apache-2.0 AND (Apache-2.0 WITH LLVM-exception) AND APSL-2.0 AND BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause AND BSL-1.0 AND bzip2-1.0.6 AND CC0-1.0 AND CC-BY-3.0 AND CC-BY-4.0 AND CC-PDDC AND CNRI-Python AND EPL-1.0 AND GPL-2.0-only AND (GPL-2.0-only WITH GCC-exception-2.0) AND GPL-2.0-or-later AND GPL-3.0-only AND ICU AND ISC AND LGPL-2.1-only AND LGPL-2.1-or-later AND LicenseRef-Fedora-Public-Domain AND LicenseRef-ISO-8879 AND MIT AND MIT-Wu AND MS-PL AND MS-RL AND NCSA AND OFL-1.1 AND OpenSSL AND Unicode-DFS-2015 AND Unicode-DFS-2016 AND W3C-19980720 AND X11 AND Zlib
- fedora 44: dotnet-host 11.0.0~rc.1.26425.128-0.12.fc44 Β· 0BSD AND Apache-2.0 AND (Apache-2.0 WITH LLVM-exception) AND APSL-2.0 AND BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause AND BSL-1.0 AND bzip2-1.0.6 AND CC0-1.0 AND CC-BY-3.0 AND CC-BY-4.0 AND CC-PDDC AND CNRI-Python AND EPL-1.0 AND GPL-2.0-only AND (GPL-2.0-only WITH GCC-exception-2.0) AND GPL-2.0-or-later AND GPL-3.0-only AND ICU AND ISC AND LGPL-2.1-only AND LGPL-2.1-or-later AND LicenseRef-Fedora-Public-Domain AND LicenseRef-ISO-8879 AND MIT AND MIT-Wu AND MS-PL AND MS-RL AND NCSA AND OFL-1.1 AND OpenSSL AND Unicode-DFS-2015 AND Unicode-DFS-2016 AND W3C-19980720 AND X11 AND Zlib
- nixpkgs unstable: dotnet-vmr 11.0.0-rc.3
- ubuntu noble: dotnet-host-10.0 10.0.12-0ubuntu1~24.04.1
- ubuntu questing: dotnet-host-10.0 10.0.9-0ubuntu1~25.10.1
- ubuntu resolute: dotnet-host-10.0 10.0.12-0ubuntu1~26.04.1
- ubuntu resolute: dotnet-host-10.0 10.0.5-0ubuntu1 Β· MIT
- ubuntu stonking: dotnet-host-10.0 10.0.12-0ubuntu2 Β· MIT
- ubuntu stonking: dotnet-host-11.0 11.0.0~rc1-0ubuntu1 Β· MIT
- ubuntu stonking: dotnet-host-11.0 11.0.0~rc3-0ubuntu1~26.10.1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms