Class MonoPathProvider
- Namespace
- AsmResolver.DotNet
- Assembly
- AsmResolver.DotNet.dll
Provides a mechanism for looking up runtime libraries in a Mono installation folder.
public sealed class MonoPathProvider : DotNetFxPathProvider
- Inheritance
-
MonoPathProvider
- Inherited Members
Constructors
MonoPathProvider(string?)
Creates a mono path provider using the provided Mono installation path.
public MonoPathProvider(string? installDirectory)
Parameters
installDirectorystring
Properties
Default
Gets the default path provider representing the global Mono installation on the current system.
public static MonoPathProvider Default { get; }
Property Value
DefaultInstallDirectory
Gets the path to the Mono installation on the current system.
public static string? DefaultInstallDirectory { get; }
Property Value
InstallDirectory
When available, gets the path to the installation directory that this provider considers.
public string? InstallDirectory { 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 override 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 override 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.