Table of Contents

Class DotnetNewOptions

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

Constructors

DotnetNewOptions()

public DotnetNewOptions()

Properties

Diagnostics

Enables diagnostic output.

public bool? Diagnostics { get; init; }

Property Value

bool?

DryRun

Displays a summary of what would happen if the given command line were run if it would result in a template creation.

public bool? DryRun { get; init; }

Property Value

bool?

Force

Forces content to be generated even if it would change existing files.

public bool? Force { get; init; }

Property Value

bool?

Name

The name for the output being created. If no name is specified, the name of the output directory is used.

public string? Name { get; init; }

Property Value

string

NoUpdateCheck

Disables checking for the template package updates when instantiating a template.

public bool? NoUpdateCheck { get; init; }

Property Value

bool?

Output

Location to place the generated output.

public FileInfo? Output { get; init; }

Property Value

FileInfo

Project

The project that should be used for context evaluation.

public FileInfo? Project { get; init; }

Property Value

FileInfo

Verbosity

Sets the verbosity level. Allowed values are q[uiet], m[inimal], n[ormal], and diag[nostic].

public VerbosityOptions? Verbosity { get; init; }

Property Value

VerbosityOptions?

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.