sqlite-net: Error "Library e_sqlite3 not found" when creating new SQLiteConnection on .net 4.7.2
I created a new project “Console App (.NET Framework)” with VS 2019 (16.4.5) and added “sqlite-net-pcl 1.7.335”. This code causes the error:
static void Main(string[] args)
{
try
{
var con = new SQLiteConnection(@"d:\temp\1.sqlite");
}
catch (Exception e)
{
Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine("{0}\n{1}", e.Message, e.InnerException);
Console.ResetColor();
}
Console.ReadKey();
}
After building the program there is no “e_sqlite3.dll” in the output folder. I copied it from the package folder of “sqlitepclraw.lib.e_sqlite3\2.0.3\runtimes” (tried with all win-versions), but the error still remains.
About this issue
- Original URL
- State: open
- Created 4 years ago
- Reactions: 2
- Comments: 17 (6 by maintainers)
It kinda looks like something is noticing e_sqlite3.dll and assuming it is a plugin, a .NET assembly, when actually it is a native DLL.