Class DotnetPackOptions
- Namespace
- Invex.Atom.Module.Dotnet.Cli
- Assembly
- Invex.Atom.Module.Dotnet.dll
public sealed record DotnetPackOptions
- Inheritance
-
objectDotnetPackOptions
Constructors
DotnetPackOptions()
public DotnetPackOptions()
Properties
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
public string? ConfigFile { get; init; }
Property Value
- string
Configuration
The configuration to use for building the package. The default is 'Release'.
public string? Configuration { get; init; }
Property Value
- string
DisableBuildServers
Force the command to ignore any persistent build servers.
public bool? DisableBuildServers { get; init; }
Property Value
- bool?
DisableParallel
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?
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
public bool? IgnoreFailedSources { get; init; }
Property Value
- bool?
IncludeSource
Include PDBs and source files. Source files go into the 'src' folder in the resulting nuget package.
public bool? IncludeSource { get; init; }
Property Value
- bool?
IncludeSymbols
Include packages with symbols in addition to regular packages in output directory.
public bool? IncludeSymbols { 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?
NoBuild
Do not build the project before packing. Implies --no-restore.
public bool? NoBuild { 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
public bool? NoHttpCache { get; init; }
Property Value
- bool?
NoLogo
Do not display the startup banner or the copyright message.
public bool? NoLogo { get; init; }
Property Value
- bool?
NoRestore
Do not restore the project before building.
public bool? NoRestore { get; init; }
Property Value
- bool?
Output
The output directory to place built packages in.
public string? Output { get; init; }
Property Value
- string
Packages
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 build for.
public string? Runtime { get; init; }
Property Value
- string
Serviceable
Set the serviceable flag in the package. See https://aka.ms/nupkgservicing for more information.
public bool? Serviceable { get; init; }
Property Value
- bool?
Source
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?
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
The version of the package to create
public string? Version { get; init; }
Property Value
- string
VersionSuffix
Set the value of the $(VersionSuffix) property to use when building the project.
public string? VersionSuffix { get; init; }
Property Value
- 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.