Skip to main content

Definition

Assembly: CloudNimble.EasyAF.Tools.dll Namespace: CloudNimble.EasyAF.Tools.Commands Inheritance: CloudNimble.EasyAF.Tools.Commands.EasyAFBaseCommand

Syntax

Summary

Command for setting up local development environment for existing EasyAF projects.

Constructors

.ctor

Initializes a new instance of the SetupCommand class.

Syntax

Parameters

.ctor Inherited

Inherited from CloudNimble.EasyAF.Tools.Commands.EasyAFBaseCommand

Syntax

.ctor Inherited

Inherited from object

Syntax

Properties

ConnectionString

Gets or sets the connection string to store locally.

Syntax

Property Value

Type: string

ContextName

Gets or sets the DbContext class name to configure.

Syntax

Property Value

Type: string

DryRun

Gets or sets a value indicating whether to show what would be configured without making changes.

Syntax

Property Value

Type: bool

SolutionFolder

Gets or sets the working directory for the solution. Defaults to current directory.

Syntax

Property Value

Type: string

Methods

CheckMSBuildRegistered Inherited

Inherited from CloudNimble.EasyAF.Tools.Commands.EasyAFBaseCommand
Ensures MSBuild is registered with the latest available version.

Syntax

ConfigureDirectoryBuildProps Inherited

Inherited from CloudNimble.EasyAF.Tools.Commands.EasyAFBaseCommand
Configures Directory.Build.props with EasyAF namespace, UserSecretsId, and analyzer references using MSBuildProjectManager.

Syntax

Parameters

ConfigureProjectTypes Inherited

Inherited from CloudNimble.EasyAF.Tools.Commands.EasyAFBaseCommand
Discovers and configures project types and namespace for all projects in the current directory and subdirectories.

Syntax

Parameters

DetectCommonNamespace Inherited

Inherited from CloudNimble.EasyAF.Tools.Commands.EasyAFBaseCommand
Detects the common namespace from existing projects.

Syntax

Parameters

Returns

Type: string The detected common namespace, or null if none found.

DetermineProjectType Inherited

Inherited from CloudNimble.EasyAF.Tools.Commands.EasyAFBaseCommand
Determines the EasyAFProjectType based on the project file name and content.

Syntax

Parameters

Returns

Type: string The determined project type, or null if no supported type is detected.

Equals Inherited Virtual

Inherited from object

Syntax

Parameters

Returns

Type: bool

Equals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

ExtractUserSecretsId Inherited

Inherited from CloudNimble.EasyAF.Tools.Commands.EasyAFBaseCommand
Extracts the UserSecretsId from a project file using MSBuild evaluation. This will properly evaluate the project with all imports including Directory.Build.props.

Syntax

Parameters

Returns

Type: string The UserSecretsId if found, otherwise null.

ExtractUserSecretsIdFromDataProject Inherited

Inherited from CloudNimble.EasyAF.Tools.Commands.EasyAFBaseCommand
Extracts the UserSecretsId from the data project folder.

Syntax

Parameters

Returns

Type: string The UserSecretsId if found, otherwise null.

ExtractUserSecretsIdFromDirectoryBuildProps Inherited

Inherited from CloudNimble.EasyAF.Tools.Commands.EasyAFBaseCommand
Extracts the UserSecretsId from Directory.Build.props in the current directory.

Syntax

Returns

Type: string The UserSecretsId if found, otherwise null.

FindCommonPrefix Inherited

Inherited from CloudNimble.EasyAF.Tools.Commands.EasyAFBaseCommand
Finds the common prefix among a list of strings.

Syntax

Parameters

Returns

Type: string The common prefix.

GetHashCode Inherited Virtual

Inherited from object

Syntax

Returns

Type: int

GetType Inherited

Inherited from object

Syntax

Returns

Type: System.Type

MemberwiseClone Inherited

Inherited from object

Syntax

Returns

Type: object

OnExecuteAsync

Executes the setup command.

Syntax

Returns

Type: System.Threading.Tasks.Task<int> Exit code.

ReferenceEquals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

SetProjectType Inherited

Inherited from CloudNimble.EasyAF.Tools.Commands.EasyAFBaseCommand
Adds or updates the EasyAFProjectType property in a project file using MSBuildProjectManager.

Syntax

Parameters

SetUserSecretAsync Inherited

Inherited from CloudNimble.EasyAF.Tools.Commands.EasyAFBaseCommand
Sets a user secret value using the official dotnet user-secrets CLI tool.

Syntax

Parameters

Returns

Type: System.Threading.Tasks.Task

ToString Inherited Virtual

Inherited from object

Syntax

Returns

Type: string?