Je suis en train de construire l'application WinForms avec base de données SQLite dans Visual Studio 2017, .NET Framework 4.6.
J'ai installé SQLite à partir de NuGet.
J'ai ajouté le projet d'installation pour installer toutes les DLL à partir de la référence sur le PC de l'utilisateur.
Pour moi, en mode Debug et Release tout fonctionne bien. Mais lorsque l'utilisateur installé mon programme, il a ceci:SQLite.Interop.dll référence
System.DllNotFoundException: Unable to load DLL 'SQLite.Interop.dll': Such module not found. (Exception from HRESULT: 0x8007007E)
at System.Data.SQLite.UnsafeNativeMethods.sqlite3_config_none(SQLiteConfigOpsEnum op) at System.Data.SQLite.SQLite3.StaticIsInitialized() at System.Data.SQLite.SQLiteLog.Initialize() at System.Data.SQLite.SQLiteConnection..ctor(String connectionString, Boolean parseViaFramework) at CatFishSystem.Form1.Form1_Load(Object sender, EventArgs e) at System.Windows.Forms.Form.OnLoad(EventArgs e) at System.Windows.Forms.Form.OnCreateControl() at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl() at System.Windows.Forms.Control.WmShowWindow(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Quand j'ai essayé d'ajouter SQLite.Interop.dll
de NuGet je reçois cette erreur:
Error Could not install package 'SQLite.Interop.dll 1.0.103'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.5', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
J'ai aussi essayé de télécharger Binaires précompilés pour 64 bits Windows .NET 4.6 à partir de Here et ajouter une référence à SQLite.Interop.dll
dirrectly. Je suis arrivé ce
Je suis coincé et ne savent pas quoi faire. J'ai essayé différentes solutions mais aucune n'a aidé. Dans l'attente de votre aide.