Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
PathAssemblyResolver Class
Definition
- Namespace:
- System.Reflection
- Assembly:
- System.Reflection.MetadataLoadContext.dll
- Package:
- System.Reflection.MetadataLoadContext v11.0.0-preview.5.26302.115
- Source:
- PathAssemblyResolver.cs
- Source:
- PathAssemblyResolver.cs
- Source:
- PathAssemblyResolver.cs
- Source:
- PathAssemblyResolver.cs
Important
Some information relates to prerelease product that may be substantially modified before itβs released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a metadata assembly resolver that uses paths to every assembly that may be loaded.
public ref class PathAssemblyResolver : System::Reflection::MetadataAssemblyResolver
public class PathAssemblyResolver : System.Reflection.MetadataAssemblyResolver
type PathAssemblyResolver = class
inherit MetadataAssemblyResolver
Public Class PathAssemblyResolver
Inherits MetadataAssemblyResolver
- Inheritance
Remarks
The file name is expected to be the same as the assembly's simple name. Multiple assemblies can exist on disk with the same name but in different directories. A single instance of PathAssemblyResolver can be used with multiple MetadataAssemblyResolver instances.
In order for an AssemblyName to match a loaded assembly, AssemblyName.Name must be equal (casing ignored).
- If a public key token is specified for the AssemblyName, it must be equal.
- If a public key token is not specified for AssemblyName, assemblies with no public key token are selected over those with a public key token.
- If more than one assembly matches, the assembly with the highest AssemblyName.Version is returned.
- AssemblyName.CultureName is ignored.
Constructors
| Name | Description |
|---|---|
| PathAssemblyResolver(IEnumerable<String>) |
Initializes a new instance of the PathAssemblyResolver class. |
Methods
| Name | Description |
|---|---|
| Resolve(MetadataLoadContext, AssemblyName) |
Returns an assembly from a given assembly name. |
Applies to
Feedback
Was this page helpful?
