Table of Contents

Class CoreRunToolchain

Namespace
BenchmarkDotNet.Toolchains.CoreRun
Assembly
BenchmarkDotNet.dll
public class CoreRunToolchain : IToolchain
Inheritance
CoreRunToolchain
Implements

Constructors

CoreRunToolchain(FileInfo, bool, string, FileInfo?, DirectoryInfo?, string)

creates a CoreRunToolchain which is using provided CoreRun to execute .NET Core apps

public CoreRunToolchain(FileInfo coreRun, bool createCopy = true, string targetFrameworkMoniker = "netcoreapp2.1", FileInfo? customDotNetCliPath = null, DirectoryInfo? restorePath = null, string displayName = "CoreRun")

Parameters

coreRun FileInfo

the path to CoreRun

createCopy bool

should a copy of CoreRun be performed? True by default. The toolchain replaces old dependencies in CoreRun folder with newer versions if used by the benchmarks.

targetFrameworkMoniker string

TFM, netcoreapp2.1 is the default

customDotNetCliPath FileInfo

path to dotnet cli, if not provided the one from PATH will be used

restorePath DirectoryInfo

the directory to restore packages to

displayName string

display name, CoreRun is the default value

Properties

Builder

public IBuilder Builder { get; }

Property Value

IBuilder

CopyCoreRun

public FileInfo CopyCoreRun { get; }

Property Value

FileInfo

CustomDotNetCliPath

public FileInfo CustomDotNetCliPath { get; }

Property Value

FileInfo

Executor

public IExecutor Executor { get; }

Property Value

IExecutor

Generator

public IGenerator Generator { get; }

Property Value

IGenerator

IsInProcess

public bool IsInProcess { get; }

Property Value

bool

Name

public string Name { get; }

Property Value

string

RestorePath

public DirectoryInfo RestorePath { get; }

Property Value

DirectoryInfo

SourceCoreRun

public FileInfo SourceCoreRun { get; }

Property Value

FileInfo

Methods

ToString()

public override string ToString()

Returns

string

Validate(BenchmarkCase, IResolver)

public IEnumerable<ValidationError> Validate(BenchmarkCase benchmark, IResolver resolver)

Parameters

benchmark BenchmarkCase
resolver IResolver

Returns

IEnumerable<ValidationError>