Class DotNetCliCommand
- Namespace
- BenchmarkDotNet.Toolchains.DotNetCli
- Assembly
- BenchmarkDotNet.dll
public class DotNetCliCommand
- Inheritance
-
DotNetCliCommand
Constructors
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
public string Arguments { get; }
Property Value
- string
public BuildPartition BuildPartition { get; }
Property Value
- BuildPartition
public string CliPath { get; }
Property Value
- string
public IReadOnlyList<EnvironmentVariable> EnvironmentVariables { get; }
Property Value
- IReadOnlyList<EnvironmentVariable>
public GenerateResult GenerateResult { get; }
Property Value
- GenerateResult
public bool LogOutput { get; }
Property Value
- bool
public ILogger Logger { get; }
Property Value
- ILogger
public TimeSpan Timeout { get; }
Property Value
- TimeSpan
Methods
public DotNetCliCommandResult AddPackages()
Returns
- DotNetCliCommandResult
public DotNetCliCommandResult Build()
Returns
- DotNetCliCommandResult
public DotNetCliCommandResult BuildNoRestore()
Returns
- DotNetCliCommandResult
public DotNetCliCommandResult Publish()
Returns
- DotNetCliCommandResult
public DotNetCliCommandResult PublishNoRestore()
Returns
- DotNetCliCommandResult
public DotNetCliCommandResult Restore()
Returns
- DotNetCliCommandResult
public BuildResult RestoreThenBuild()
Returns
- BuildResult
public BuildResult RestoreThenBuildThenPublish()
Returns
- BuildResult
public DotNetCliCommand WithArguments(string arguments)
Parameters
arguments
string
Returns
- DotNetCliCommand
public DotNetCliCommand WithCliPath(string cliPath)
Parameters
cliPath
string
Returns
- DotNetCliCommand