pub type load_assembly_bytes_fn = unsafe extern "system" fn(assembly_bytes: *const u8, assembly_bytes_len: usize, symbols_bytes: *const u8, symbols_bytes_len: usize, load_context: *const c_void, reserved: *const c_void) -> i32;Available on crate feature
net8_0 only.Expand description
Signature of delegate returned by hostfxr_get_runtime_delegate for type hdt_load_assembly_bytes
Calling this function will load the specified assembly in the default load context.
It does not provide a mechanism for registering additional dependency resolution, as mechanisms like .deps.json and AssemblyDependencyResolver are file-based.
Dependencies can be pre-loaded (for example, via a previous call to this function) or the specified assembly can explicitly register its own resolution logic (for example, via the AssemblyLoadContext.Resolving event).
It uses AssemblyDependencyResolver to register additional dependency resolution for the load context.
ยงArguments
assembly_path: Path to the assembly to load - requirements match the assemblyPath parameter ofAssemblyLoadContext.LoadFromAssemblyPath. This path will also be used for dependency resolution via any.deps.jsoncorresponding to the assembly.load_context: The load context that will be used to load the assembly. For .NET 8 this parameter must benulland the API will only load the assembly in the default load context.reserved: Parameter reserved for future extensibility, currently unused and must benull.