Table of Contents

Class DotNetCliCommand

Namespace
BenchmarkDotNet.Toolchains.DotNetCli
Assembly
BenchmarkDotNet.dll
public class DotNetCliCommand
Inheritance
DotNetCliCommand

Constructors

DotNetCliCommand(string, string, GenerateResult, ILogger, BuildPartition, IReadOnlyList<EnvironmentVariable>, TimeSpan, bool)

public DotNetCliCommand(string cliPath, string arguments, GenerateResult generateResult, ILogger logger, BuildPartition buildPartition, IReadOnlyList<EnvironmentVariable> environmentVariables, TimeSpan timeout, bool logOutput = false)

Parameters

cliPath string
arguments string
generateResult GenerateResult
logger ILogger
buildPartition BuildPartition
environmentVariables IReadOnlyList<EnvironmentVariable>
timeout TimeSpan
logOutput bool

Properties

Arguments

public string Arguments { get; }

Property Value

string

BuildPartition

public BuildPartition BuildPartition { get; }

Property Value

BuildPartition

CliPath

public string CliPath { get; }

Property Value

string

EnvironmentVariables

public IReadOnlyList<EnvironmentVariable> EnvironmentVariables { get; }

Property Value

IReadOnlyList<EnvironmentVariable>

GenerateResult

public GenerateResult GenerateResult { get; }

Property Value

GenerateResult

LogOutput

public bool LogOutput { get; }

Property Value

bool

Logger

public ILogger Logger { get; }

Property Value

ILogger

Timeout

public TimeSpan Timeout { get; }

Property Value

TimeSpan

Methods

AddPackages()

public DotNetCliCommandResult AddPackages()

Returns

DotNetCliCommandResult

Build()

public DotNetCliCommandResult Build()

Returns

DotNetCliCommandResult

BuildNoRestore()

public DotNetCliCommandResult BuildNoRestore()

Returns

DotNetCliCommandResult

Publish()

public DotNetCliCommandResult Publish()

Returns

DotNetCliCommandResult

PublishNoRestore()

public DotNetCliCommandResult PublishNoRestore()

Returns

DotNetCliCommandResult

Restore()

public DotNetCliCommandResult Restore()

Returns

DotNetCliCommandResult

RestoreThenBuild()

public BuildResult RestoreThenBuild()

Returns

BuildResult

RestoreThenBuildThenPublish()

public BuildResult RestoreThenBuildThenPublish()

Returns

BuildResult

WithArguments(string)

public DotNetCliCommand WithArguments(string arguments)

Parameters

arguments string

Returns

DotNetCliCommand

WithCliPath(string)

public DotNetCliCommand WithCliPath(string cliPath)

Parameters

cliPath string

Returns

DotNetCliCommand