Class CoreRunGenerator
- Namespace
- BenchmarkDotNet.Toolchains.CoreRun
- Assembly
- BenchmarkDotNet.dll
public class CoreRunGenerator : CsProjGenerator, IGenerator, IEquatable<CsProjGenerator>
- Inheritance
-
CoreRunGenerator
- Implements
- Inherited Members
Constructors
CoreRunGenerator(FileInfo, FileInfo, string, string, string)
public CoreRunGenerator(FileInfo sourceCoreRun, FileInfo copyCoreRun, string targetFrameworkMoniker, string cliPath, string packagesPath)
Parameters
sourceCoreRun
FileInfocopyCoreRun
FileInfotargetFrameworkMoniker
stringcliPath
stringpackagesPath
string
Methods
CopyAllRequiredFiles(ArtifactsPaths)
if you need to copy some extra files to make the benchmarks work you should override this method
protected override void CopyAllRequiredFiles(ArtifactsPaths artifactsPaths)
Parameters
artifactsPaths
ArtifactsPaths
GetArtifactsToCleanup(ArtifactsPaths)
returns a list of artifacts that should be removed after running the benchmarks
protected override string[] GetArtifactsToCleanup(ArtifactsPaths artifactsPaths)
Parameters
artifactsPaths
ArtifactsPaths
Returns
- string[]
GetBinariesDirectoryPath(string, string)
returns a path where executable should be found after the build (usually \bin)
protected override string GetBinariesDirectoryPath(string buildArtifactsDirectoryPath, string configuration)
Parameters
Returns
GetPackagesDirectoryPath(string)
returns a path to the folder where NuGet packages should be restored
protected override string GetPackagesDirectoryPath(string buildArtifactsDirectoryPath)
Parameters
buildArtifactsDirectoryPath
string