Class DotnetWorkloadUpdateOptions
- Namespace
- Invex.Atom.Module.Dotnet.Cli
- Assembly
- Invex.Atom.Module.Dotnet.dll
public sealed record DotnetWorkloadUpdateOptions
- Inheritance
-
objectDotnetWorkloadUpdateOptions
Constructors
DotnetWorkloadUpdateOptions()
public DotnetWorkloadUpdateOptions()
Properties
AdvertisingManifestsOnly
Only update advertising manifests.
public bool? AdvertisingManifestsOnly { get; init; }
Property Value
- bool?
ConfigFile
The NuGet configuration file to use.
public string? ConfigFile { get; init; }
Property Value
- string
DisableParallel
Prevent restoring multiple projects in parallel.
public bool? DisableParallel { get; init; }
Property Value
- bool?
FromHistory
Update workloads to a previous version specified by the argument. Use the 'dotnet workload history' to see available workload history records.
public int? FromHistory { get; init; }
Property Value
- int?
FromPreviousSdk
Include workloads installed with earlier SDK versions in update.
public bool? FromPreviousSdk { get; init; }
Property Value
- bool?
IgnoreFailedSources
Treat package source failures as warnings.
public bool? IgnoreFailedSources { get; init; }
Property Value
- bool?
IncludePreviews
Allow prerelease workload manifests.
public bool? IncludePreviews { get; init; }
Property Value
- bool?
Interactive
Allows the command to stop and wait for user input or action (for example to complete authentication).
public bool? Interactive { get; init; }
Property Value
- bool?
ManifestsOnly
Update to the workload versions specified in the history without changing which workloads are installed. Currently installed workloads will be updated to match the specified history version.
public string? ManifestsOnly { get; init; }
Property Value
- string
NoHttpCache
Do not cache packages and http requests.
public bool? NoHttpCache { get; init; }
Property Value
- bool?
Source
The NuGet package source to use during the restore. To specify multiple sources, repeat the option.
public string[]? Source { get; init; }
Property Value
- string[]
TempDir
Specify a temporary directory for this command to download and extract NuGet packages (must be secure).
public string? TempDir { get; init; }
Property Value
- string
Verbosity
Set the MSBuild verbosity level. Allowed values are q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic].
public VerbosityOptions? Verbosity { get; init; }
Property Value
Version
A workload version to display or one or more workloads and their versions joined by the '@' character.
public IEnumerable<string>? Version { get; init; }
Property Value
- IEnumerable<string>
Methods
ToArguments()
Converts these options to individual command-line arguments, in schema order.
public IReadOnlyList<string> ToArguments()
Returns
- IReadOnlyList<string>
The arguments. Each option name and each value is a separate element, so values need no quoting.