Show / Hide Table of Contents

Class CsProjGenerator

Inheritance
Object
GeneratorBase
DotNetCliGenerator
CsProjGenerator
CoreRunGenerator
MonoAotLLVMGenerator
WasmGenerator
Generator
Implements
IGenerator
IEquatable<CsProjGenerator>
Inherited Members
DotNetCliGenerator.TargetFrameworkMoniker
DotNetCliGenerator.CliPath
DotNetCliGenerator.PackagesPath
DotNetCliGenerator.IsNetCore
DotNetCliGenerator.GetExecutableExtension()
DotNetCliGenerator.GetArtifactsToCleanup(ArtifactsPaths)
DotNetCliGenerator.CopyAllRequiredFiles(ArtifactsPaths)
DotNetCliGenerator.GetPackagesDirectoryPath(String)
DotNetCliGenerator.GenerateBuildScript(BuildPartition, ArtifactsPaths)
GeneratorBase.GenerateProject(BuildPartition, ILogger, String)
GeneratorBase.GenerateNuGetConfig(ArtifactsPaths)
GeneratorBase.GenerateAppConfig(BuildPartition, ArtifactsPaths)
GeneratorBase.GenerateCode(BuildPartition, ArtifactsPaths)
GeneratorBase.GetExecutablePath(String, String)
Namespace: BenchmarkDotNet.Toolchains.CsProj
Assembly: BenchmarkDotNet.dll
Syntax
public class CsProjGenerator : DotNetCliGenerator, IGenerator, IEquatable<CsProjGenerator>

Constructors

CsProjGenerator(String, String, String, String, Boolean)

Declaration
public CsProjGenerator(string targetFrameworkMoniker, string cliPath, string packagesPath, string runtimeFrameworkVersion, bool isNetCore = true)
Parameters
Type Name Description
String targetFrameworkMoniker
String cliPath
String packagesPath
String runtimeFrameworkVersion
Boolean isNetCore

Properties

RuntimeFrameworkVersion

Declaration
public string RuntimeFrameworkVersion { get; }
Property Value
Type Description
String

Methods

Equals(CsProjGenerator)

Declaration
public bool Equals(CsProjGenerator other)
Parameters
Type Name Description
CsProjGenerator other
Returns
Type Description
Boolean

Equals(Object)

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
Object obj
Returns
Type Description
Boolean
Overrides
Object.Equals(Object)

GenerateProject(BuildPartition, ArtifactsPaths, ILogger)

Declaration
protected override void GenerateProject(BuildPartition buildPartition, ArtifactsPaths artifactsPaths, ILogger logger)
Parameters
Type Name Description
BuildPartition buildPartition
ArtifactsPaths artifactsPaths
ILogger logger
Overrides
GeneratorBase.GenerateProject(BuildPartition, ArtifactsPaths, ILogger)

GetBinariesDirectoryPath(String, String)

Declaration
protected override string GetBinariesDirectoryPath(string buildArtifactsDirectoryPath, string configuration)
Parameters
Type Name Description
String buildArtifactsDirectoryPath
String configuration
Returns
Type Description
String
Overrides
GeneratorBase.GetBinariesDirectoryPath(String, String)

GetBuildArtifactsDirectoryPath(BuildPartition, String)

Declaration
protected override string GetBuildArtifactsDirectoryPath(BuildPartition buildPartition, string programName)
Parameters
Type Name Description
BuildPartition buildPartition
String programName
Returns
Type Description
String
Overrides
DotNetCliGenerator.GetBuildArtifactsDirectoryPath(BuildPartition, String)

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
Int32
Overrides
Object.GetHashCode()

GetProjectFilePath(String)

Declaration
protected override string GetProjectFilePath(string buildArtifactsDirectoryPath)
Parameters
Type Name Description
String buildArtifactsDirectoryPath
Returns
Type Description
String
Overrides
GeneratorBase.GetProjectFilePath(String)

GetProjectFilePath(Type, ILogger)

returns a path to the project file which defines the benchmarks

Declaration
protected virtual FileInfo GetProjectFilePath(Type benchmarkTarget, ILogger logger)
Parameters
Type Name Description
Type benchmarkTarget
ILogger logger
Returns
Type Description
FileInfo

GetRuntimeSettings(GcMode, IResolver)

returns an MSBuild string that defines Runtime settings

Declaration
protected virtual string GetRuntimeSettings(GcMode gcMode, IResolver resolver)
Parameters
Type Name Description
GcMode gcMode
IResolver resolver
Returns
Type Description
String

Implements

IGenerator
System.IEquatable<T>
In This Article
Back to top Copyright © 2013–2021 .NET Foundation and contributors