Class DotnetCmdBuilder
- Namespace
- SunamoDotnetCmdBuilder
- Assembly
- SunamoDotnetCmdBuilder.dll
Provides a fluent API for building dotnet CLI commands.
public class DotnetCmdBuilder
- Inheritance
-
DotnetCmdBuilder
- Inherited Members
- Extension Methods
Constructors
DotnetCmdBuilder()
Initializes a new instance of the DotnetCmdBuilder class.
public DotnetCmdBuilder()
Properties
Add
Gets or sets the Add command builder.
public Add Add { get; set; }
Property Value
Nuget
Gets or sets the Nuget command builder.
public Nuget Nuget { get; set; }
Property Value
Sln
Gets or sets the Sln command builder.
public Sln Sln { get; set; }
Property Value
Methods
Build(string)
Adds a dotnet build command with optional arguments.
public void Build(string arguments)
Parameters
argumentsstringThe arguments to pass to the build command.
Cd(string)
Adds a cd (change directory) command.
public void Cd(string path)
Parameters
pathstringThe path to change to.
Clean()
Adds a dotnet clean command.
public void Clean()
Pack()
Adds a dotnet pack command.
public void Pack()
ToString()
Returns the accumulated command string.
public override string ToString()
Returns
- string
A string containing all the accumulated dotnet commands.