Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider using NativeLibrary.Load() #248

Closed
bricelam opened this issue Jan 9, 2019 · 2 comments
Closed

Consider using NativeLibrary.Load() #248

bricelam opened this issue Jan 9, 2019 · 2 comments

Comments

@bricelam
Copy link
Contributor

@bricelam bricelam commented Jan 9, 2019

.NET Core 3.0 includes a new NativeLibrary class that can be used instead of LoadLibraryEx and dlopen.

@ericsink
Copy link
Owner

@ericsink ericsink commented Jan 9, 2019

Neato.

ericsink added a commit that referenced this issue Feb 15, 2019
…t dynamically, fetch function pointers, and call Marshal.GetDelegateForFunction. this should provide lots more flexibility and allow this library and its build system to collapse down to something small and simple. relevant to #248 and #253.  still a work in progress, but this approach does currently pass all the unit tests on Windows.
ericsink added a commit that referenced this issue Mar 23, 2019
…der.dynamic. for now, it goes resolver.misc. there will be multiple platform-specific versions of this. the one for dotnetcore 3.0 will just use System.Runtime.InteropServices.NativeLibrary. other platforms and runtimes will implement something similar. #248
ericsink added a commit that referenced this issue Jun 14, 2019
…f System.Runtime.InteropServices.NativeLibrary (part of .NET Core 3.0). #248
ericsink added a commit that referenced this issue Jun 17, 2019
… calls which take a library name instead of a library path. with this change, using provider_dynamic with System.Runtime.InteropServices.NativeLibrary for netcoreapp3 works. #248
ericsink added a commit that referenced this issue Jun 17, 2019
@ericsink
Copy link
Owner

@ericsink ericsink commented Sep 3, 2019

@ericsink ericsink closed this Sep 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants