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