Class CoreRunToolchain
Inheritance
CoreRunToolchain
Assembly: BenchmarkDotNet.dll
public class CoreRunToolchain : IToolchain
Constructors
creates a CoreRunToolchain which is using provided CoreRun to execute .NET Core apps
Declaration
public CoreRunToolchain(FileInfo coreRun, bool createCopy = true, string targetFrameworkMoniker = "netcoreapp2.1", FileInfo customDotNetCliPath = null, DirectoryInfo restorePath = null, string displayName = "CoreRun")
Parameters
Type |
Name |
Description |
FileInfo |
coreRun |
the path to CoreRun
|
Boolean |
createCopy |
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.
|
String |
targetFrameworkMoniker |
TFM, netcoreapp2.1 is the default
|
FileInfo |
customDotNetCliPath |
path to dotnet cli, if not provided the one from PATH will be used
|
DirectoryInfo |
restorePath |
the directory to restore packages to
|
String |
displayName |
display name, CoreRun is the default value
|
Properties
Declaration
public IBuilder Builder { get; }
Property Value
Declaration
public FileInfo CopyCoreRun { get; }
Property Value
Declaration
public FileInfo CustomDotNetCliPath { get; }
Property Value
Declaration
public IExecutor Executor { get; }
Property Value
Declaration
public IGenerator Generator { get; }
Property Value
Declaration
public bool IsInProcess { get; }
Property Value
Declaration
public string Name { get; }
Property Value
Declaration
public DirectoryInfo RestorePath { get; }
Property Value
Declaration
public FileInfo SourceCoreRun { get; }
Property Value
Methods
Declaration
public bool IsSupported(BenchmarkCase benchmark, ILogger logger, IResolver resolver)
Parameters
Returns
Declaration
public override string ToString()
Returns
Overrides
Implements