Show / Hide Table of Contents

Class CoreRuntime

Inheritance
Object
Runtime
CoreRuntime
Implements
IEquatable<Runtime>
Inherited Members
Runtime.Name
Runtime.RuntimeMoniker
Runtime.MsBuildMoniker
Runtime.IsAOT
Runtime.ToString()
Runtime.Equals(Runtime)
Runtime.Equals(Object)
Runtime.GetHashCode()
Namespace: BenchmarkDotNet.Environments
Assembly: BenchmarkDotNet.dll
Syntax
public class CoreRuntime : Runtime, IEquatable<Runtime>

Fields

Core20

Declaration
public static readonly CoreRuntime Core20
Field Value
Type Description
CoreRuntime

Core21

Declaration
public static readonly CoreRuntime Core21
Field Value
Type Description
CoreRuntime

Core22

Declaration
public static readonly CoreRuntime Core22
Field Value
Type Description
CoreRuntime

Core30

Declaration
public static readonly CoreRuntime Core30
Field Value
Type Description
CoreRuntime

Core31

Declaration
public static readonly CoreRuntime Core31
Field Value
Type Description
CoreRuntime

Core50

Declaration
public static readonly CoreRuntime Core50
Field Value
Type Description
CoreRuntime

Core60

Declaration
public static readonly CoreRuntime Core60
Field Value
Type Description
CoreRuntime

Core70

Declaration
public static readonly CoreRuntime Core70
Field Value
Type Description
CoreRuntime

Properties

IsPlatformSpecific

Declaration
public bool IsPlatformSpecific { get; }
Property Value
Type Description
Boolean

Latest

Declaration
public static CoreRuntime Latest { get; }
Property Value
Type Description
CoreRuntime

Methods

CreateForNewVersion(String, String)

use this method if you want to target .NET Core version not supported by current version of BenchmarkDotNet. Example: .NET Core 10

Declaration
public static CoreRuntime CreateForNewVersion(string msBuildMoniker, string displayName)
Parameters
Type Name Description
String msBuildMoniker

msbuild moniker, example: netcoreapp10.0

String displayName

display name used by BDN to print the results

Returns
Type Description
CoreRuntime

new runtime information

Implements

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