Class DotnetRestoreOptions
- Namespace
- Invex.Atom.Module.Dotnet.Cli
- Assembly
- Invex.Atom.Module.Dotnet.dll
public sealed record DotnetRestoreOptions
- Inheritance
-
objectDotnetRestoreOptions
Constructors
DotnetRestoreOptions()
public DotnetRestoreOptions()
Properties
Arch
The target architecture.
public string? Arch { get; init; }
Property Value
- string
ArtifactsPath
The artifacts path. All output from the project, including build, publish, and pack output, will go in subfolders under the specified path.
public string? ArtifactsPath { get; init; }
Property Value
- string
ConfigFile
The NuGet configuration file to use.
public string? ConfigFile { get; init; }
Property Value
- string
DisableBuildServers
Force the command to ignore any persistent build servers.
public bool? DisableBuildServers { get; init; }
Property Value
- bool?
DisableParallel
Prevent restoring multiple projects in parallel.
public bool? DisableParallel { get; init; }
Property Value
- bool?
Force
Force all dependencies to be resolved even if the last restore was successful. This is equivalent to deleting project.assets.json.
public bool? Force { get; init; }
Property Value
- bool?
ForceEvaluate
Forces restore to reevaluate all dependencies even if a lock file already exists.
public bool? ForceEvaluate { get; init; }
Property Value
- bool?
GetItem
public string[]? GetItem { get; init; }
Property Value
- string[]
GetProperty
public string[]? GetProperty { get; init; }
Property Value
- string[]
GetResultOutputFile
public string[]? GetResultOutputFile { get; init; }
Property Value
- string[]
GetTargetResult
public string[]? GetTargetResult { get; init; }
Property Value
- string[]
IgnoreFailedSources
Treat package source failures as warnings.
public bool? IgnoreFailedSources { 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?
LockFilePath
Output location where project lock file is written. By default, this is 'PROJECT_ROOT\packages.lock.json'.
public string? LockFilePath { get; init; }
Property Value
- string
LockedMode
Don't allow updating project lock file.
public bool? LockedMode { get; init; }
Property Value
- bool?
NoDependencies
Do not restore project-to-project references and only restore the specified project.
public bool? NoDependencies { get; init; }
Property Value
- bool?
NoHttpCache
Disable Http Caching for packages.
public bool? NoHttpCache { get; init; }
Property Value
- bool?
Os
The target operating system.
public string? Os { get; init; }
Property Value
- string
Packages
The directory to restore packages to.
public string? Packages { get; init; }
Property Value
- string
Property
public IReadOnlyDictionary<string, string>? Property { get; init; }
Property Value
- IReadOnlyDictionary<string, string>
RestoreProperty
public IReadOnlyDictionary<string, string>? RestoreProperty { get; init; }
Property Value
- IReadOnlyDictionary<string, string>
Runtime
The target runtime to restore packages for.
public IEnumerable<string>? Runtime { get; init; }
Property Value
- IEnumerable<string>
Source
The NuGet package source to use for the restore.
public IEnumerable<string>? Source { get; init; }
Property Value
- IEnumerable<string>
Target
Build these targets in this project. Use a semicolon or a comma to separate multiple targets, or specify each target separately.
public string[]? Target { get; init; }
Property Value
- string[]
UseCurrentRuntime
Use current runtime as the target runtime.
public bool? UseCurrentRuntime { get; init; }
Property Value
- bool?
UseLockFile
Enables project lock file to be generated and used with restore.
public bool? UseLockFile { get; init; }
Property Value
- bool?
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
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.