Table of Contents

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

Add

Nuget

Gets or sets the Nuget command builder.

public Nuget Nuget { get; set; }

Property Value

Nuget

Sln

Gets or sets the Sln command builder.

public Sln Sln { get; set; }

Property Value

Sln

Methods

Build(string)

Adds a dotnet build command with optional arguments.

public void Build(string arguments)

Parameters

arguments string

The arguments to pass to the build command.

Cd(string)

Adds a cd (change directory) command.

public void Cd(string path)

Parameters

path string

The 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.