C#C
C#15mo ago
Bubba

✅ Use Sqlite in a C# project

Hello, I'm trying to use Sqlite for the first time but I'm getting the following error when creating a connection.
using System.Data.SQLite;
...
new SQLiteConnection(connectionString);
...


Unhandled exception. System.DllNotFoundException: Unable to load shared library 'SQLite.Interop.dll' or one of its dependencies. In order to help diagnose loading problems, consider setting the DYLD_PRINT_LIBRARIES environment variable:
...


I installed the packages SQLite and System.Data.SQLite.Core using NuGet. Any idea? (Not sure if it's important but i'm on apple silicon)
Was this page helpful?