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
stringruntimeFrameworkVersion
stringname
stringcustomDotNetCliPath
stringpackagesPath
stringcustomRuntimePack
stringaotCompilerPath
stringaotCompilerMode
MonoAotCompilerMode
Fields
NetCoreApp10_0
public static readonly NetCoreAppSettings NetCoreApp10_0
Field Value
NetCoreApp20
public static readonly NetCoreAppSettings NetCoreApp20
Field Value
NetCoreApp21
public static readonly NetCoreAppSettings NetCoreApp21
Field Value
NetCoreApp22
public static readonly NetCoreAppSettings NetCoreApp22
Field Value
NetCoreApp30
public static readonly NetCoreAppSettings NetCoreApp30
Field Value
NetCoreApp31
public static readonly NetCoreAppSettings NetCoreApp31
Field Value
NetCoreApp50
public static readonly NetCoreAppSettings NetCoreApp50
Field Value
NetCoreApp60
public static readonly NetCoreAppSettings NetCoreApp60
Field Value
NetCoreApp70
public static readonly NetCoreAppSettings NetCoreApp70
Field Value
NetCoreApp80
public static readonly NetCoreAppSettings NetCoreApp80
Field Value
NetCoreApp90
public static readonly NetCoreAppSettings NetCoreApp90
Field Value
Properties
AOTCompilerMode
Mono AOT Compiler mode, either 'mini' or 'llvm'
public MonoAotCompilerMode AOTCompilerMode { get; }
Property Value
AOTCompilerPath
Path to the Mono AOT Compiler
public string? AOTCompilerPath { get; }
Property Value
CustomDotNetCliPath
public string? CustomDotNetCliPath { get; }
Property Value
CustomRuntimePack
Path to a custom runtime pack.
public string? CustomRuntimePack { get; }
Property Value
Name
display name used for showing the results
public string Name { get; }
Property Value
PackagesPath
The directory to restore packages to.
public string? PackagesPath { get; }
Property Value
RuntimeFrameworkVersion
public string? RuntimeFrameworkVersion { get; }
Property Value
TargetFrameworkMoniker
sample values: net6.0, net8.0
public string TargetFrameworkMoniker { get; }
Property Value
Methods
WithCustomDotNetCliPath(string, string?)
public NetCoreAppSettings WithCustomDotNetCliPath(string customDotNetCliPath, string? displayName = null)
Parameters
Returns
WithCustomPackagesRestorePath(string, string?)
public NetCoreAppSettings WithCustomPackagesRestorePath(string packagesPath, string? displayName = null)