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
FileInfothe path to CoreRun
createCopy
boolshould 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
stringTFM, netcoreapp2.1 is the default
customDotNetCliPath
FileInfopath to dotnet cli, if not provided the one from PATH will be used
restorePath
DirectoryInfothe directory to restore packages to
displayName
stringdisplay name, CoreRun is the default value
Properties
Builder
public IBuilder Builder { get; }
Property Value
CopyCoreRun
public FileInfo CopyCoreRun { get; }
Property Value
CustomDotNetCliPath
public FileInfo CustomDotNetCliPath { get; }
Property Value
Executor
public IExecutor Executor { get; }
Property Value
Generator
public IGenerator Generator { get; }
Property Value
IsInProcess
public bool IsInProcess { get; }
Property Value
Name
public string Name { get; }
Property Value
RestorePath
public DirectoryInfo RestorePath { get; }
Property Value
SourceCoreRun
public FileInfo SourceCoreRun { get; }
Property Value
Methods
ToString()
public override string ToString()
Returns
Validate(BenchmarkCase, IResolver)
public IEnumerable<ValidationError> Validate(BenchmarkCase benchmark, IResolver resolver)
Parameters
benchmark
BenchmarkCaseresolver
IResolver