Table of Contents

Class RuntimeOptions

Namespace
AsmResolver.DotNet.Config.Json
Assembly
AsmResolver.DotNet.dll

Provides settings created when building a project.

public class RuntimeOptions
Inheritance
RuntimeOptions
Inherited Members

Constructors

RuntimeOptions()

Creates a new empty runtime options instance.

public RuntimeOptions()

RuntimeOptions(string, RuntimeFramework)

Creates a new instance of the RuntimeOptions class.

public RuntimeOptions(string tfm, RuntimeFramework framework)

Parameters

tfm string

The target framework moniker.

framework RuntimeFramework

The framework implementation description.

RuntimeOptions(string, string, string)

Creates a new instance of the RuntimeOptions class.

public RuntimeOptions(string tfm, string runtimeName, string runtimeVersion)

Parameters

tfm string

The target framework moniker.

runtimeName string

The name of the runtime.

runtimeVersion string

The version of the runtime.

Properties

AdditionalProbingPaths

Optional property which specifies additional paths to consider when looking for dependencies. The value is either a single string, or an array of strings.

public List<string>? AdditionalProbingPaths { get; set; }

Property Value

List<string>

ApplyPatches

When false, the most compatible framework version previously found is used. When it is unspecified or true, the framework from either the same or a higher version that differs only by the patch field will be used.

public bool? ApplyPatches { get; set; }

Property Value

bool?

ConfigProperties

Indicates configuration properties to configure the runtime and the framework

public Dictionary<string, JsonElement>? ConfigProperties { get; set; }

Property Value

Dictionary<string, JsonElement>

Framework

Gets or sets the shared framework to use when activating the application.

public RuntimeFramework? Framework { get; set; }

Property Value

RuntimeFramework

Remarks

The presence of this section (or another framework in the new frameworks section) indicates that the application is a framework-dependent app.

IncludedFrameworks

Gets an optional array (added in .NET Core 3.0) that allows multiple frameworks to be specified.

public List<RuntimeFramework>? IncludedFrameworks { get; set; }

Property Value

List<RuntimeFramework>

RollForwardOnNoCandidateFx

Gets or sets a value that determines the roll-forward behavior.

public int? RollForwardOnNoCandidateFx { get; set; }

Property Value

int?

TargetFrameworkMoniker

Gets or sets the optional string value which specifies the Target Framework Moniker.

[JsonPropertyName("tfm")]
public string? TargetFrameworkMoniker { get; set; }

Property Value

string

Methods

GetAllFrameworks()

Gets a collection of all frameworks specified in the configuration.

public IEnumerable<RuntimeFramework> GetAllFrameworks()

Returns

IEnumerable<RuntimeFramework>