Class DotnetPublishOptions
- Namespace
- Invex.Atom.Module.Dotnet.Cli
- Assembly
- Invex.Atom.Module.Dotnet.dll
public sealed record DotnetPublishOptions
- Inheritance
-
objectDotnetPublishOptions
Constructors
DotnetPublishOptions()
public DotnetPublishOptions()
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
public string? ConfigFile { get; init; }
Property Value
- string
Configuration
The configuration to publish for. The default is 'Release' for NET 8.0 projects and above, but 'Debug' for older projects.
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?
Framework
The target framework to publish for. The target framework has to be specified in the project file.
public string? Framework { get; init; }
Property Value
- string
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?
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?
Manifest
The path to a target manifest file that contains the list of packages to be excluded from the publish step.
public IEnumerable<string>? Manifest { get; init; }
Property Value
- IEnumerable<string>
NoBuild
Do not build the project before publishing. 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?
NoSelfContained
Publish your application as a framework dependent application. A compatible .NET runtime must be installed on the target machine to run your application.
public bool? NoSelfContained { get; init; }
Property Value
- bool?
Os
The target operating system.
public string? Os { get; init; }
Property Value
- string
Output
The output directory to place the published artifacts 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 publish for. This is used when creating a self-contained deployment. The default is to publish a framework-dependent application.
public string? Runtime { get; init; }
Property Value
- string
SelfContained
Publish the .NET runtime with your application so the runtime doesn't need to be installed on the target machine. The default is 'false.' However, when targeting .NET 7 or lower, the default is 'true' if a runtime identifier is specified.
public bool? SelfContained { 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
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.