Method LoadAssemblyMetadata
LoadAssemblyMetadata(string, MetadataLoadContext?)
Loads an assembly metadata from a specific path on the disk.
public static Assembly? LoadAssemblyMetadata(string pathToDll, MetadataLoadContext? context = null)
Parameters
pathToDll
stringThe path to the assembly.
context
MetadataLoadContextThe optional context to load the assembly from.
Returns
- Assembly
The loaded assembly.