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: netcoreapp2.0, netcoreapp2.1 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
custom settings used in the auto-generated project.json / .csproj file
runtimeFrameworkVersion string
custom settings used in the auto-generated project.json / .csproj file
name string
custom settings used in the auto-generated project.json / .csproj file
customDotNetCliPath string
custom settings used in the auto-generated project.json / .csproj file
packagesPath string
custom settings used in the auto-generated project.json / .csproj file
customRuntimePack string
custom settings used in the auto-generated project.json / .csproj file
aotCompilerPath string
custom settings used in the auto-generated project.json / .csproj file
aotCompilerMode MonoAotCompilerMode
custom settings used in the auto-generated project.json / .csproj file

Fields

NetCoreApp20

public static readonly NetCoreAppSettings NetCoreApp20

Field Value

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

NetCoreApp21

public static readonly NetCoreAppSettings NetCoreApp21

Field Value

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

NetCoreApp22

public static readonly NetCoreAppSettings NetCoreApp22

Field Value

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

NetCoreApp30

public static readonly NetCoreAppSettings NetCoreApp30

Field Value

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

NetCoreApp31

public static readonly NetCoreAppSettings NetCoreApp31

Field Value

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

NetCoreApp50

public static readonly NetCoreAppSettings NetCoreApp50

Field Value

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

NetCoreApp60

public static readonly NetCoreAppSettings NetCoreApp60

Field Value

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

NetCoreApp70

public static readonly NetCoreAppSettings NetCoreApp70

Field Value

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

NetCoreApp80

public static readonly NetCoreAppSettings NetCoreApp80

Field Value

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

NetCoreApp90

public static readonly NetCoreAppSettings NetCoreApp90

Field Value

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

Properties

AOTCompilerMode

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

public MonoAotCompilerMode AOTCompilerMode { get; }

Property Value

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

AOTCompilerPath

Path to the Mono AOT Compiler

public string? AOTCompilerPath { get; }

Property Value

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

CustomDotNetCliPath

public string? CustomDotNetCliPath { get; }

Property Value

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

CustomRuntimePack

Path to a custom runtime pack.

public string? CustomRuntimePack { get; }

Property Value

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

Name

display name used for showing the results

public string Name { get; }

Property Value

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

PackagesPath

The directory to restore packages to.

public string? PackagesPath { get; }

Property Value

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

RuntimeFrameworkVersion

public string? RuntimeFrameworkVersion { get; }

Property Value

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

TargetFrameworkMoniker

sample values: netcoreapp2.0, netcoreapp2.1

public string TargetFrameworkMoniker { get; }

Property Value

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

Methods

WithCustomDotNetCliPath(string, string?)

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

Parameters

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

Returns

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

WithCustomPackagesRestorePath(string, string?)

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

Parameters

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

Returns

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