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
packageIdstringversionstringexecutorFactoryFunc<ICommandExecutor>loggerIBuildLogger
Properties
PackageId
public string PackageId { get; }
Property Value
Version
public string? Version { get; }
Property Value
Methods
EnsureInstalledAsync()
Ensures the tool is installed globally. Safe to call multiple times - tracks installation state.
public Task EnsureInstalledAsync()