Class DotNetCoreAssemblyResolver
- Namespace
- AsmResolver.DotNet
- Assembly
- AsmResolver.DotNet.dll
Provides an implementation of an assembly resolver that includes .NET or .NET Core runtime libraries.
public class DotNetCoreAssemblyResolver : AssemblyResolverBase, IAssemblyResolver
- Inheritance
-
DotNetCoreAssemblyResolver
- Implements
- Inherited Members
Constructors
DotNetCoreAssemblyResolver(RuntimeConfiguration?, Version)
Creates a new .NET Core assembly resolver, by attempting to autodetect the current .NET or .NET Core installation directory.
public DotNetCoreAssemblyResolver(RuntimeConfiguration? configuration, Version fallbackVersion)
Parameters
configurationRuntimeConfigurationThe runtime configuration as specified by the *.runtimeconfig.json file.
fallbackVersionVersionThe version of .NET to fallback on if the runtime configuration is insufficient.
DotNetCoreAssemblyResolver(RuntimeConfiguration?, Version?, DotNetCorePathProvider, ModuleReaderParameters)
Creates a new .NET Core assembly resolver.
public DotNetCoreAssemblyResolver(RuntimeConfiguration? configuration, Version? fallbackVersion, DotNetCorePathProvider pathProvider, ModuleReaderParameters readerParameters)
Parameters
configurationRuntimeConfigurationThe runtime configuration to use, or
nullif no configuration is available.fallbackVersionVersionThe version of .NET or .NET Core to use when no (valid) configuration is provided.
pathProviderDotNetCorePathProviderThe installation directory of .NET Core.
readerParametersModuleReaderParametersThe parameters to use while reading the assembly.
DotNetCoreAssemblyResolver(Version)
Creates a new .NET Core assembly resolver, by attempting to autodetect the current .NET or .NET Core installation directory.
public DotNetCoreAssemblyResolver(Version runtimeVersion)
Parameters
runtimeVersionVersionThe version of .NET to target.
DotNetCoreAssemblyResolver(Version, DotNetCorePathProvider)
Creates a new .NET Core assembly resolver, by attempting to autodetect the current .NET or .NET Core installation directory.
public DotNetCoreAssemblyResolver(Version runtimeVersion, DotNetCorePathProvider pathProvider)
Parameters
runtimeVersionVersionThe version of .NET to target.
pathProviderDotNetCorePathProviderThe installation directory of .NET Core.
DotNetCoreAssemblyResolver(Version, ModuleReaderParameters)
Creates a new .NET Core assembly resolver, by attempting to autodetect the current .NET or .NET Core installation directory.
public DotNetCoreAssemblyResolver(Version runtimeVersion, ModuleReaderParameters readerParameters)
Parameters
runtimeVersionVersionThe version of .NET to target.
readerParametersModuleReaderParametersThe parameters to use while reading the assembly.
Methods
ProbeRuntimeDirectories(AssemblyDescriptor)
Probes all known runtime directories for the provided assembly.
protected override string? ProbeRuntimeDirectories(AssemblyDescriptor assembly)
Parameters
assemblyAssemblyDescriptorThe assembly descriptor to search.
Returns
- string
The path to the assembly, or
nullif none was found.