简体   繁体   中英

How to setup System.Data.SQLite.dll

Have I an application using sqlite...

Ive tried this:

  1. installing via ClickOnce Application setup (it works)
  2. I Put SQLite.dll file together with .exe in the same folder. (it works}
  3. hmm the folder with an .exe only (not working)

What I mean is when you build the project and get the .exe on the folder \\bin\\Debug and move it somewhere then when you run the app errors will not occurs.

I wondering if there's a way that i can run even without installing ClickOnce Application setup?

I thinking of setup the SQLite.dll on specific path reference? Is it possible to do that?

-thanks

System.Data.SQLite.dll is not part of the standard .NET Framework so it does not get installed in the GAC of the client machines when .NET runtime is installed at first.

that's the reason why you should have this dll referenced by your executable, distributed together and in the same folder as your exe is deployed.

or you could distribute it somewhere else like in a sub-folder of your application setup and have proper entries in the configuration file or in the .NET C# code to specify where assemblies not found in the standard locations have to be loaded from.

You can use Nuget to get the package installed. For my case, it automatically created 2 subfolders for me, which is x86 and x64, I just followed the folder structure in the bin folder, and it worked fine for my case.

在此输入图像描述在此输入图像描述在此输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM