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

Unable to resolve native runtime dlls #398

Open
reitowo opened this issue Nov 9, 2024 · 0 comments
Open

Unable to resolve native runtime dlls #398

reitowo opened this issue Nov 9, 2024 · 0 comments

Comments

@reitowo
Copy link

reitowo commented Nov 9, 2024

I use EFCore but it always throws DllNotFoundException, even I tried put .deps.json besides the dll I load.

System.DllNotFoundException: Unable to load DLL 'e_sqlite3' or one of its dependencies

The output directory of generator has a runtimes folder. But it seems not able to read the deps config.

Also, call to dotnet.System.Runtime.InteropServices.NativeLibrary.Load(library); cause directly crash, TryLoad will say IntPtr not exported. But if I create a wrapper call these api, it will work as expected.

So currently, I have to expose an API to LoadLibrary in advance. Hope this can provide a way to resolve native libraries like .deps.json does.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant