© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•17mo ago•
2 replies
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);
...
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:
...
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)
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

✅ Learning SQLite for C# Academy Project
C#CC# / help
3y ago
How can I use a precompiled C/C++ dll in a C# project?
C#CC# / help
2y ago
❔ build a project in c#
C#CC# / help
3y ago
✅ Using SQLite with C#
C#CC# / help
3y ago