runtime icon indicating copy to clipboard operation
runtime copied to clipboard

Add AssemblyLoadContext.LoadUnmanagedDllFromPath helper API

Open jkotas opened this issue 11 years ago • 4 comments

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)

jkotas avatar May 06 '15 12:05 jkotas

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.

jkotas avatar May 06 '15 12:05 jkotas

I'm taking a look at this

kouvel avatar Aug 27 '15 22:08 kouvel

API review: https://github.com/dotnet/corefx/issues/3054

kouvel avatar Sep 02 '15 05:09 kouvel

Closing this since it has been addressed.

CC @kouvel

tzwlai avatar Oct 27 '15 22:10 tzwlai