pub type load_assembly_fn = unsafe extern "system" fn(assembly_path: *const char_t, 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.
Calling this function will load the specified assembly in the default load context.
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.