Class DotNetCliGenerator
Inheritance
DotNetCliGenerator
Assembly: BenchmarkDotNet.dll
public abstract class DotNetCliGenerator : GeneratorBase, IGenerator
Constructors
Declaration
protected DotNetCliGenerator(string targetFrameworkMoniker, string cliPath, string packagesPath, bool isNetCore)
Parameters
Properties
Declaration
public string CliPath { get; }
Property Value
Declaration
protected bool IsNetCore { get; }
Property Value
Declaration
public string PackagesPath { get; }
Property Value
Declaration
public string TargetFrameworkMoniker { get; }
Property Value
Methods
Declaration
protected override void CopyAllRequiredFiles(ArtifactsPaths artifactsPaths)
Parameters
Overrides
Declaration
protected override void GenerateBuildScript(BuildPartition buildPartition, ArtifactsPaths artifactsPaths)
Parameters
Overrides
Declaration
protected override string[] GetArtifactsToCleanup(ArtifactsPaths artifactsPaths)
Parameters
Returns
Overrides
we need our folder to be on the same level as the project that we want to reference
we are limited by xprojs (by default compiles all .cs files in all subfolders, Program.cs could be doubled and fail the build)
and also by NuGet internal implementation like looking for global.json file in parent folders
Declaration
protected override string GetBuildArtifactsDirectoryPath(BuildPartition buildPartition, string programName)
Parameters
Returns
Overrides
Declaration
protected override string GetExecutableExtension()
Returns
Overrides
Declaration
protected override string GetPackagesDirectoryPath(string buildArtifactsDirectoryPath)
Parameters
Type |
Name |
Description |
String |
buildArtifactsDirectoryPath |
|
Returns
Overrides
Implements