Table of Contents

Class DotnetNewCreateOptions

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

Constructors

DotnetNewCreateOptions()

public DotnetNewCreateOptions()

Properties

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

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.