Library e_sqlite3 not found

I'm trying to use sqlite database in my WPF .NET 4.7.2 Framework project using Microsoft.Data.Sqlite but I'm getting an error:

Also e_sqlite3 is not present in Debug folder

System.TypeInitializationException: 'The type initializer for 'Microsoft.Data.Sqlite.SqliteConnection' threw an exception.'

Exception: Library e_sqlite3 not found
plat: win
suffix: DLL
possibilities (2):
    1) C:\Users\rusha\Source\Repos\QRCodeApp\QRCodeApp\bin\Debug\runtimes\win-x86\native\e_sqlite3.dll
    2) C:\Users\rusha\Source\Repos\QRCodeApp\QRCodeApp\bin\Debug\e_sqlite3.dll
win TryLoad: C:\Users\rusha\Source\Repos\QRCodeApp\QRCodeApp\bin\Debug\runtimes\win-x86\native\e_sqlite3.dll
thrown: System.ComponentModel.Win32Exception (0x80004005): The specified module could not be found
   at SQLitePCL.NativeLibrary.TryLoad(String name, Loader plat, Action`1 log, IntPtr& h)
win TryLoad: C:\Users\rusha\Source\Repos\QRCodeApp\QRCodeApp\bin\Debug\e_sqlite3.dll
thrown: System.ComponentModel.Win32Exception (0x80004005): The specified module could not be found
   at SQLitePCL.NativeLibrary.TryLoad(String name, Loader plat, Action`1 log, IntPtr& h)
NOT FOUND
Was this page helpful?