我需要什么SQLite NuGet软件包 [英] What SQLite NuGet package do I need
问题描述
There's a long list of options to choose from on the http://system.data.sqlite.org website. I always prefer the static builds because you never know what other runtimes the dynamic builds require. For my current project I only need the 32-bit DLL because the application currently only runs in 32 bit mode. So I basically just need the single mixed-mode static DLL.
有少量的NuGet软件包.其中之一是 System.Data.SQLite.Core ,但它安装了两个不同的DLL,即MSIL和本机部分,后者在x86和x64子目录中安装了两次.另一个是 System.Data.SQLite.x86 ,但这取决于我不使用的LINQ和EF.
There are a small number of NuGet packages. One of them is System.Data.SQLite.Core but it installs two different DLLs, the MSIL and the native parts, and the latter twice in x86 and x64 subdirectories. The other is System.Data.SQLite.x86 but that depends on LINQ and EF which I won't use.
是否存在另一个仅包含我需要的DLL的隐藏程序包?诸如 System.Data.SQLite.Core.x86 之类的东西?我不想将文件直接包含在Git存储库中,因此该库的每次更新都不会增加太多.
Is there another hidden package that just contains the one DLL I need? Something like System.Data.SQLite.Core.x86? I don't want to include the file directly in the Git repository so it won't grow too much with every update of that library.
NuGet软件包是否包含静态或动态构建?我需要知道相应地设置我的安装程序,否则该程序可能会在某些计算机上失败而没有警告.软件包描述确实没有说明太多内容.
And do the NuGet packages contain the static or dynamic build? I need to know that to setup my installer accordingly, or the program may fail on some computers without warning. The package description really doesn't say much about its contents.
SQLite具有灵活的配置,我认为唯一的解决方法是提供多种NuGet软件包.
SQLite comes in flexible configurations, and I think the only way to answer that is to have a wide offering of NuGet packages.
推荐答案
我使用这个:
工具– NuGet软件包管理器–软件包管理器控制台类型安装包System.Data.SQLite
然后按Enter
Tools – NuGet Package Manager – Package Manager Console
Type
Install-Package System.Data.SQLite
and press Enter
只需编写代码
导入System.Data.SQLite
Imports System.Data.SQLite
这是在Visual Studio上运行SQLite所需的全部内容
That's all I need for a working SQLite on Visual Studio
这篇关于我需要什么SQLite NuGet软件包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!