Table of Contents

Class DotnetTool

Namespace
Ando.Operations
Assembly
ando.dll

Represents a .NET CLI tool that can be installed and used in builds. Tools are installed globally in the build environment.

public class DotnetTool
Inheritance
DotnetTool
Inherited Members

Constructors

DotnetTool(string, string?, Func<ICommandExecutor>, IBuildLogger)

Represents a .NET CLI tool that can be installed and used in builds. Tools are installed globally in the build environment.

public DotnetTool(string packageId, string? version, Func<ICommandExecutor> executorFactory, IBuildLogger logger)

Parameters

packageId string
version string
executorFactory Func<ICommandExecutor>
logger IBuildLogger

Properties

PackageId

public string PackageId { get; }

Property Value

string

Version

public string? Version { get; }

Property Value

string

Methods

EnsureInstalledAsync()

Ensures the tool is installed globally. Safe to call multiple times - tracks installation state.

public Task EnsureInstalledAsync()

Returns

Task