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 = "net8.0", FileInfo? customDotNetCliPath = null, DirectoryInfo? restorePath = null, string displayName = "CoreRun")
Parameters
coreRunFileInfothe path to CoreRun
createCopyboolshould 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. targetFrameworkMonikerstringTFM, net8.0 is the default
customDotNetCliPathFileInfopath to dotnet cli, if not provided the one from PATH will be used
restorePathDirectoryInfothe directory to restore packages to
displayNamestringdisplay 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
benchmarkBenchmarkCaseresolverIResolver