1(1)                                  .NET                                  (1)
2
3
4

dotnet workload repair

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

NAME

9       dotnet workload repair - Repairs workloads installations.
10

SYNOPSIS

12              dotnet workload repair
13                  [--configfile] [--disable-parallel] [--ignore-failed-sources]
14                  [--interactive] [--no-cache]
15                  [-s|--source <SOURCE>] [--temp-dir <PATH>]
16                  [-v|--verbosity <LEVEL>]
17
18              dotnet workload repair -?|-h|--help
19

DESCRIPTION

21       The  dotnet workload repair command reinstalls all installed workloads.
22       Workloads are made up of multiple workload packs and it’s  possible  to
23       get  into  a state where some installed successfully but others didn’t.
24       For example, a dotnet workload install command  might  not  finish  in‐
25       stalling because of a dropped internet connection.
26
27       For more information about the dotnet workload commands, see the dotnet
28       workload install command.
29
30   Arguments
31WORKLOAD_ID
32
33         The workload ID of the workload to repair.
34

OPTIONS

36--configfile <FILE>
37
38         The NuGet configuration file (nuget.config) to  use.   If  specified,
39         only the settings from this file will be used.  If not specified, the
40         hierarchy of configuration files from the current directory  will  be
41         used.  For more information, see Common NuGet Configurations.
42
43--disable-parallel
44
45         Prevents restoring multiple projects in parallel.
46
47-?|-h|--help
48
49         Prints out a description of how to use the command.
50
51--ignore-failed-sources
52
53         Treats package source failures as warnings.
54
55--include-previews
56
57         Allows prerelease workload manifests.
58
59--interactive
60
61         Allows  the  command  to stop and wait for user input or action.  For
62         example, to complete authentication.
63
64--no-cache
65
66         Prevents caching of packages and http requests.
67
68-s|--source <SOURCE>
69
70         Specifies the URI of the NuGet package source to use.   This  setting
71         overrides  all  of  the  sources specified in the nuget.config files.
72         Multiple sources can be provided by specifying this  option  multiple
73         times.
74
75--temp-dir <PATH>
76
77         Specify  the  temporary  directory used to download and extract NuGet
78         packages (must be secure).
79
80-v|--verbosity <LEVEL>
81
82         Sets the verbosity level of the command.  Allowed values are q[uiet],
83         m[inimal],  n[ormal],  d[etailed],  and diag[nostic].  The default is
84         minimal.   For  more  information,  see  <xref:Microsoft.Build.Frame‐
85         work.LoggerVerbosity>.
86

EXAMPLES

88       • Repair all installed workloads:
89
90                dotnet workload repair
91
92
93
94                                                                           (1)
Impressum