View Ticket
Not logged in
Ticket Hash: b07e6f8ae48cb3a3a34f0fe8b4f91e051bf6a76b
Title: Could not load file or assembly 'System.Data.SQLite, Version=
Status: Closed Type: Incident
Severity: Important Priority: Medium
Subsystem: NuGetPackage Resolution: Duplicate
Last Modified: 2018-09-02 17:52:52
Version Found In:
User Comments:
anonymous added on 2018-08-30 14:31:01:
I cannot load System.Data.SQLite, Version= when trying to run console NET CORE 2.0 application.
System.Data.SQLite, Version=

using (SQLiteConnection connection = new SQLiteConnection("***"))

                var keyCommand = connection.CreateCommand();
                keyCommand.CommandText = "select count(*) from Config";
                var res = keyCommand.ExecuteScalar();
                Console.WriteLine($"Res = {res}");

I have tried to add System.Data.SQLite or System.Data.SQLite.Core from nuget but nothing good happens. 
If I create a windows only .net framework 4.7.* application everything works fine. But I see that on .net framework I have x86 and x64 folder with SQLite.Interop.dll and I don't have this library on NET CORE.
Maybe it is the reason why I my program doesn't work? How can I fix this? Where can I find the interop library for NET CORE and how can I make my program run on NET CORE?

P.S.: I tried copying System.Data.SQLite.dll to output directory but have no result!

mistachkin added on 2018-09-02 17:52:52:
Duplicate of [67d10c4262d45d26].