Table of Contents

Class NativeAotToolchain

Namespace
BenchmarkDotNet.Toolchains.NativeAot
Assembly
BenchmarkDotNet.dll
public class NativeAotToolchain : Toolchain, IToolchain
Inheritance
NativeAotToolchain
Implements
Inherited Members

Fields

Net60

compiled as net6.0, targets experimental 6.0.0-* NativeAOT build from the https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-experimental/nuget/v3/index.json

public static readonly IToolchain Net60

Field Value

IToolchain

Net70

compiled as net7.0, targets latest NativeAOT build from the NuGet.org feed

public static readonly IToolchain Net70

Field Value

IToolchain

Net80

compiled as net8.0, targets latest NativeAOT build from the NuGet.org feed: "https://api.nuget.org/v3/index.json"

public static readonly IToolchain Net80

Field Value

IToolchain

Net90

compiled as net9.0, targets latest NativeAOT build from the .NET 9 feed: https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet9/nuget/v3/index.json

public static readonly IToolchain Net90

Field Value

IToolchain

Methods

CreateBuilder()

public static NativeAotToolchainBuilder CreateBuilder()

Returns

NativeAotToolchainBuilder

GetExtraArguments(string)

public static string GetExtraArguments(string runtimeIdentifier)

Parameters

runtimeIdentifier string

Returns

string

Validate(BenchmarkCase, IResolver)

public override IEnumerable<ValidationError> Validate(BenchmarkCase benchmarkCase, IResolver resolver)

Parameters

benchmarkCase BenchmarkCase
resolver IResolver

Returns

IEnumerable<ValidationError>