logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

Description

       The dotnetworkloadrepair command reinstalls all installed workloads.  Workloads are made up of multiple
       workload packs and it’s possible to get into a state where some installed successfully but others didn’t.
       For  example, a dotnetworkloadinstall command might not finish installing because of a dropped internet
       connection.

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

Dotnet Workload Repair

Thisarticleappliesto: ✔️ .NET 6 SDK and later versions

Examples

       • Repair all installed workloads:

                dotnet workload repair

                                                   2024-10-02                          dotnet-workload-repair(1)

Name

       dotnet-workload-repair - Repairs workloads installations.

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.

       • --disable-parallel

         Prevents restoring multiple projects in parallel.

       • -?|-h|--help

         Prints out a description of how to use the command.

       • --ignore-failed-sources

         Treats package source failures as warnings.

       • --include-previews

         Allows prerelease workload manifests.

       • --interactive

         Allows the command to stop and wait for user input or action.  For example, to complete authentication.

       • --no-cache

         Prevents caching of packages and http requests.

       • -s|--source<SOURCE>

         Specifies the URI of the NuGet package source to use.  This setting overrides all of the sources speci‐
         fied in the nuget.config files.  Multiple sources can be provided by specifying  this  option  multiple
         times.

       • --temp-dir<PATH>

         Specify the temporary directory used to download and extract NuGet packages (must be secure).

       • -v|--verbosity<LEVEL>

         Sets  the verbosity level of the command.  Allowed values are q[uiet], m[inimal], n[ormal], d[etailed],
         and diag[nostic].  The default is minimal.   For  more  information,  see  <xref:Microsoft.Build.Frame‐
         work.LoggerVerbosity>.

Synopsis

              dotnet workload repair
                  [--configfile] [--disable-parallel] [--ignore-failed-sources]
                  [--interactive] [--no-cache]
                  [-s|--source <SOURCE>] [--temp-dir <PATH>]
                  [-v|--verbosity <LEVEL>]

              dotnet workload repair -?|-h|--help

See Also