Class DotNetFxPathProvider
- Namespace
- AsmResolver.DotNet
- Assembly
- AsmResolver.DotNet.dll
Provides a mechanism for locating legacy .NET FX runtime installation directories on a system.
public abstract class DotNetFxPathProvider
- Inheritance
-
DotNetFxPathProvider
- Derived
- Inherited Members
Constructors
DotNetFxPathProvider()
protected DotNetFxPathProvider()
Properties
Default
Gets the system-default .NET FX path provider.
public static DotNetFxPathProvider Default { get; }
Property Value
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 abstract bool TryGetCompatibleReferenceRuntime(Version version, bool is32Bit, out DotNetFxInstallation? runtime)
Parameters
versionVersionThe version of the runtime the .NET FX binary is targeting.
is32Bitbooltrueif the 32-bits version should be preferred.runtimeDotNetFxInstallationThe located runtime installation, or
nullif none was found.
Returns
- bool
trueif the runtime was located successfully,falseotherwise.
TryGetCompatibleRuntime(Version, bool, out DotNetFxInstallation?)
Attempts to obtain the most compatible implementation runtime present on the current system given a .NET FX version.
public abstract bool TryGetCompatibleRuntime(Version version, bool is32Bit, out DotNetFxInstallation? runtime)
Parameters
versionVersionThe version of the runtime the .NET FX binary is targeting.
is32Bitbooltrueif the 32-bits version should be preferred.runtimeDotNetFxInstallationThe located runtime installation, or
nullif none was found.
Returns
- bool
trueif the runtime was located successfully,falseotherwise.