Show / Hide Table of Contents

Class NetCoreAppSettings

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

Inheritance
Object
NetCoreAppSettings
Namespace: BenchmarkDotNet.Toolchains.DotNetCli
Assembly: BenchmarkDotNet.dll
Syntax
public class 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
Declaration
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
Type Name Description
String targetFrameworkMoniker
String runtimeFrameworkVersion
String name
String customDotNetCliPath
String packagesPath
String customRuntimePack
String aotCompilerPath
MonoAotCompilerMode aotCompilerMode

Fields

NetCoreApp20

Declaration
public static readonly NetCoreAppSettings NetCoreApp20
Field Value
Type Description
NetCoreAppSettings

NetCoreApp21

Declaration
public static readonly NetCoreAppSettings NetCoreApp21
Field Value
Type Description
NetCoreAppSettings

NetCoreApp22

Declaration
public static readonly NetCoreAppSettings NetCoreApp22
Field Value
Type Description
NetCoreAppSettings

NetCoreApp30

Declaration
public static readonly NetCoreAppSettings NetCoreApp30
Field Value
Type Description
NetCoreAppSettings

NetCoreApp31

Declaration
public static readonly NetCoreAppSettings NetCoreApp31
Field Value
Type Description
NetCoreAppSettings

NetCoreApp50

Declaration
public static readonly NetCoreAppSettings NetCoreApp50
Field Value
Type Description
NetCoreAppSettings

NetCoreApp60

Declaration
public static readonly NetCoreAppSettings NetCoreApp60
Field Value
Type Description
NetCoreAppSettings

NetCoreApp70

Declaration
public static readonly NetCoreAppSettings NetCoreApp70
Field Value
Type Description
NetCoreAppSettings

Properties

AOTCompilerMode

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

Declaration
public MonoAotCompilerMode AOTCompilerMode { get; }
Property Value
Type Description
MonoAotCompilerMode

AOTCompilerPath

Path to the Mono AOT Compiler

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

CustomDotNetCliPath

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

CustomRuntimePack

Path to a custom runtime pack.

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

Name

display name used for showing the results

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

PackagesPath

The directory to restore packages to.

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

RuntimeFrameworkVersion

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

TargetFrameworkMoniker

sample values: netcoreapp2.0, netcoreapp2.1

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

Methods

WithCustomDotNetCliPath(String, String)

Declaration
public NetCoreAppSettings WithCustomDotNetCliPath(string customDotNetCliPath, string displayName = null)
Parameters
Type Name Description
String customDotNetCliPath
String displayName
Returns
Type Description
NetCoreAppSettings

WithCustomPackagesRestorePath(String, String)

Declaration
public NetCoreAppSettings WithCustomPackagesRestorePath(string packagesPath, string displayName = null)
Parameters
Type Name Description
String packagesPath
String displayName
Returns
Type Description
NetCoreAppSettings
In This Article
Back to top Copyright © 2013–2021 .NET Foundation and contributors