Table of Contents

Class DotnetPackageListOptions

Namespace
Invex.Atom.Module.Dotnet.Cli
Assembly
Invex.Atom.Module.Dotnet.dll
public sealed record DotnetPackageListOptions
Inheritance
object
DotnetPackageListOptions

Constructors

DotnetPackageListOptions()

public DotnetPackageListOptions()

Properties

Config

The path to the NuGet config file to use. Requires the '--outdated', '--deprecated' or '--vulnerable' option.

public string? Config { get; init; }

Property Value

string

Deprecated

Lists packages that have been deprecated. Cannot be combined with '--vulnerable' or '--outdated' options.

public bool? Deprecated { get; init; }

Property Value

bool?

Format

Specifies the output format type for the list packages command.

public string? Format { get; init; }

Property Value

string

Framework

Chooses a framework to show its packages. Use the option multiple times for multiple frameworks.

public IEnumerable<string>? Framework { get; init; }

Property Value

IEnumerable<string>

HighestMinor

Consider only the packages with a matching major version number when searching for newer packages. Requires the '--outdated' option.

public bool? HighestMinor { get; init; }

Property Value

bool?

HighestPatch

Consider only the packages with a matching major and minor version numbers when searching for newer packages. Requires the '--outdated' option.

public bool? HighestPatch { get; init; }

Property Value

bool?

IncludePrerelease

Consider packages with prerelease versions when searching for newer packages. Requires the '--outdated' option.

public bool? IncludePrerelease { get; init; }

Property Value

bool?

IncludeTransitive

Lists transitive and top-level packages.

public bool? IncludeTransitive { 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?

NoRestore

Do not restore before running the command.

public bool? NoRestore { get; init; }

Property Value

bool?

Outdated

Lists packages that have newer versions. Cannot be combined with '--deprecated' or '--vulnerable' options.

public bool? Outdated { get; init; }

Property Value

bool?

OutputVersion

Specifies the version of machine-readable output. Requires the '--format json' option.

public int? OutputVersion { get; init; }

Property Value

int?

Project

The project file to operate on. If a file is not specified, the command will search the current directory for one.

public string? Project { get; init; }

Property Value

string

Source

The NuGet sources to use when searching for newer packages. Requires the '--outdated', '--deprecated' or '--vulnerable' option.

public IEnumerable<string>? Source { get; init; }

Property Value

IEnumerable<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

VerbosityOptions?

Vulnerable

Lists packages that have known vulnerabilities. Cannot be combined with '--deprecated' or '--outdated' options.

public bool? Vulnerable { get; init; }

Property Value

bool?

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.