Open
Description
When MetadataLoadContext
is resolving an assembly and its MetadataAssemblyResolver
returns null, it throws an exception with this message:
The message suggests that 'pre-loading' the assembly with
LoadFromAssemblyPath
will populate the MetadataLoadContext's assembly binding cache.
The API documentation for the LoadFrom
methods also suggests this is the case:
MetadataLoadContext.LoadFromAssemblyPath
Loads an assembly from a specific path on the disk and binds its assembly name to it in the MetadataLoadContext.
But these methods do not do this:
It looks like this behavior was changed, but the documentation and exception message was not updated: 2ef74f6#diff-7a38392b94b0c17ee62172e5b642b77f0b3a1bb8d79a6488d24f1729345c46fbL49