Table of Contents

Class NetCoreAppSettings

Namespace
BenchmarkDotNet.Toolchains.DotNetCli
Assembly
BenchmarkDotNet.dll

custom settings used in the auto-generated project.json / .csproj file

public class NetCoreAppSettings
Inheritance
NetCoreAppSettings

Constructors

NetCoreAppSettings(string, string?, string, string?, string?, string?, string?, MonoAotCompilerMode)

sample values: net6.0, net8.0 used in the auto-generated .csproj file simply ignored if null or empty display name used for showing the results customize dotnet cli path if default is not desired simply ignored if null the directory to restore packages to path to a custom runtime pack path to Mono AOT compiler Mono AOT compiler moder
public NetCoreAppSettings(string targetFrameworkMoniker, string? runtimeFrameworkVersion, string name, string? customDotNetCliPath = null, string? packagesPath = null, string? customRuntimePack = null, string? aotCompilerPath = null, MonoAotCompilerMode aotCompilerMode = MonoAotCompilerMode.mini)

Parameters

targetFrameworkMoniker string
runtimeFrameworkVersion string
name string
customDotNetCliPath string
packagesPath string
customRuntimePack string
aotCompilerPath string
aotCompilerMode MonoAotCompilerMode

Fields

NetCoreApp10_0

public static readonly NetCoreAppSettings NetCoreApp10_0

Field Value

NetCoreAppSettings

NetCoreApp20

public static readonly NetCoreAppSettings NetCoreApp20

Field Value

NetCoreAppSettings

NetCoreApp21

public static readonly NetCoreAppSettings NetCoreApp21

Field Value

NetCoreAppSettings

NetCoreApp22

public static readonly NetCoreAppSettings NetCoreApp22

Field Value

NetCoreAppSettings

NetCoreApp30

public static readonly NetCoreAppSettings NetCoreApp30

Field Value

NetCoreAppSettings

NetCoreApp31

public static readonly NetCoreAppSettings NetCoreApp31

Field Value

NetCoreAppSettings

NetCoreApp50

public static readonly NetCoreAppSettings NetCoreApp50

Field Value

NetCoreAppSettings

NetCoreApp60

public static readonly NetCoreAppSettings NetCoreApp60

Field Value

NetCoreAppSettings

NetCoreApp70

public static readonly NetCoreAppSettings NetCoreApp70

Field Value

NetCoreAppSettings

NetCoreApp80

public static readonly NetCoreAppSettings NetCoreApp80

Field Value

NetCoreAppSettings

NetCoreApp90

public static readonly NetCoreAppSettings NetCoreApp90

Field Value

NetCoreAppSettings

Properties

AOTCompilerMode

Mono AOT Compiler mode, either 'mini' or 'llvm'

public MonoAotCompilerMode AOTCompilerMode { get; }

Property Value

MonoAotCompilerMode

AOTCompilerPath

Path to the Mono AOT Compiler

public string? AOTCompilerPath { get; }

Property Value

string

CustomDotNetCliPath

public string? CustomDotNetCliPath { get; }

Property Value

string

CustomRuntimePack

Path to a custom runtime pack.

public string? CustomRuntimePack { get; }

Property Value

string

Name

display name used for showing the results

public string Name { get; }

Property Value

string

PackagesPath

The directory to restore packages to.

public string? PackagesPath { get; }

Property Value

string

RuntimeFrameworkVersion

public string? RuntimeFrameworkVersion { get; }

Property Value

string

TargetFrameworkMoniker

sample values: net6.0, net8.0

public string TargetFrameworkMoniker { get; }

Property Value

string

Methods

WithCustomDotNetCliPath(string, string?)

public NetCoreAppSettings WithCustomDotNetCliPath(string customDotNetCliPath, string? displayName = null)

Parameters

customDotNetCliPath string
displayName string

Returns

NetCoreAppSettings

WithCustomPackagesRestorePath(string, string?)

public NetCoreAppSettings WithCustomPackagesRestorePath(string packagesPath, string? displayName = null)

Parameters

packagesPath string
displayName string

Returns

NetCoreAppSettings