-
Notifications
You must be signed in to change notification settings - Fork 146
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 load shared library 'SQLite.Interop.dll' #755
Comments
You need to set the ResolutionPath when working with SQLite. The first thing to check with SQLite is that are you running in x64 or x86 mode, and are your reference library dlls in the resolutionpath for the same x64 or x86. |
@Thorium Thank you for the quick reply! At https://fsprojects.github.io/SQLProvider/core/sqlite.html
|
I have tried to get it working under windows with I had to change the copy path to the dlls:
and I get
I guess |
I'm experiencing the same problem, I'm trying to use the provider on a Win 11 machine using Rider. I think the docs aren't clear enough about where the SQLite.Interop.dll file should be copied to. PS. I copied the |
ResolutionPath is a static parameter to SqlProvider like connectionstring is, so you pick a folder. Often easier to point a separate folder instead of Nuget path. Even if your machine and your OS are x64, it might be that your compiler is running on x86. |
Describe the bug
I can't get most basic example like https://fsprojects.github.io/SQLProvider/core/sqlite.html working.
To Reproduce
Steps to reproduce the behavior:
Create new console application.
dotnet new console -lang F# -o SQLite cd SQLite dotnet add package SQLProvider dotnet add package System.Data.SQLite
Build sqlite-netFx
Add lib to SQLite.fsproj (in ItemGroup)
Copy
northwindEF.db
from SQLProvider toSQLite/db
Add to Program.fs
Run
System information
Should this work? Is the documentation up to date? Which point am I missing?
Thank you!
The text was updated successfully, but these errors were encountered: