HDF.PInvoke icon indicating copy to clipboard operation
HDF.PInvoke copied to clipboard

The native DLLs are not searched realtive to the HDF.PInvoke.dll

Open JanWosnitza opened this issue 9 years ago • 1 comments

In NativeDependencies.GetAssemblyName() the path is selected relative to the executed assembly (the program using the DLL) and not (what I expected) relative to the DLL.

This could be fixed by replacing System.Reflection.Assembly.GetExecutingAssembly() with typeof(NativeDependencies).Assembly.

Are there any concerns or use-cases which this might destroy?

JanWosnitza avatar Jan 19 '17 15:01 JanWosnitza

Having more than one way to resolve the path might be the best solution?

JanWosnitza avatar Jan 19 '17 16:01 JanWosnitza