runtime
runtime copied to clipboard
Add AssemblyLoadContext.LoadUnmanagedDllFromPath helper API
Simple overrides of LoadUnmanagedDll that just wish to provide alternative paths need to deal with platform differences for no good reason today. Add a helper API to AssemblyLoadContext to fix it:
protected IntPtr LoadUnmanagedDllFromPath(String unmanagedDllPath)
Note that the advanced cases that wish to pass custom flags to LoadLibrary on Windows, or dlopen on Unix will still need to have platform-specific code.
I'm taking a look at this
API review: https://github.com/dotnet/corefx/issues/3054
Closing this since it has been addressed.
CC @kouvel