Interface IDotnetCliHelper
- Namespace
- Invex.Atom.Module.Dotnet.Helpers
- Assembly
- Invex.Atom.Module.Dotnet.dll
Provides access to the .NET CLI for executing various dotnet commands.
[ConfigureHostBuilder]
public interface IDotnetCliHelper : IBuildAccessor
- Inherited Members
Remarks
Implementing this interface in your build definition makes the IDotnetCli service available, allowing you to programmatically interact with the .NET command-line tools.
Properties
DotnetCli
Gets an instance of IDotnetCli for executing .NET CLI commands.
IDotnetCli DotnetCli { get; }
Property Value
Methods
ConfigureHostBuilderFromIDotnetCliHelper(IHostApplicationBuilder)
Configures the host builder to add the .NET CLI service.
protected static void ConfigureHostBuilderFromIDotnetCliHelper(IHostApplicationBuilder builder)
Parameters
builderIHostApplicationBuilderThe host application builder.
Remarks
This method registers DotnetCli as the singleton implementation for IDotnetCli.