Table of Contents

Class DotNetFrameworkPathProvider

Namespace
AsmResolver.DotNet
Assembly
AsmResolver.DotNet.dll

Provides a mechanism for locating installations of the .NET Framework on a Windows machine.

public sealed class DotNetFrameworkPathProvider : DotNetFxPathProvider
Inheritance
DotNetFrameworkPathProvider
Inherited Members

Properties

Instance

Gets the singleton instance of the DotNetFrameworkPathProvider class.

public static DotNetFrameworkPathProvider Instance { get; }

Property Value

DotNetFrameworkPathProvider

Methods

TryGetCompatibleReferenceRuntime(Version, bool, out DotNetFxInstallation?)

Attempts to obtain the most compatible reference runtime present on the current system given a .NET FX version.

public override bool TryGetCompatibleReferenceRuntime(Version version, bool is32Bit, out DotNetFxInstallation? runtime)

Parameters

version Version

The version of the runtime the .NET FX binary is targeting.

is32Bit bool

true if the 32-bits version should be preferred.

runtime DotNetFxInstallation

The located runtime installation, or null if none was found.

Returns

bool

true if the runtime was located successfully, false otherwise.

TryGetCompatibleRuntime(Version, bool, out DotNetFxInstallation?)

Attempts to obtain the most compatible implementation runtime present on the current system given a .NET FX version.

public override bool TryGetCompatibleRuntime(Version version, bool is32Bit, out DotNetFxInstallation? runtime)

Parameters

version Version

The version of the runtime the .NET FX binary is targeting.

is32Bit bool

true if the 32-bits version should be preferred.

runtime DotNetFxInstallation

The located runtime installation, or null if none was found.

Returns

bool

true if the runtime was located successfully, false otherwise.