You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
I use EFCore but it always throws DllNotFoundException, even I tried put .deps.json besides the dll I load.
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 sayIntPtr
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.
The text was updated successfully, but these errors were encountered: