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

Open
bricelam opened this issue Jan 9, 2019 · 1 comment

Comments

Projects
None yet
2 participants
@bricelam
Copy link

commented Jan 9, 2019

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

@ericsink

This comment has been minimized.

Copy link
Owner

commented Jan 9, 2019

Neato.

ericsink added a commit that referenced this issue Feb 15, 2019

a new approach. no more DllImport for the sqlite lib. instead, load i…
…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

mv the resolver stuff (the code that searches for a dll) out of provi…
…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

refactor SQLitePCLRaw.resolver.misc to have an API that is a subset o…
…f System.Runtime.InteropServices.NativeLibrary (part of .NET Core 3.0). #248

ericsink added a commit that referenced this issue Jun 17, 2019

chg the netcoreapp version of SQLitePCL.NativeLibrary to use the Load…
… 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.