一、System.Data.SQLite.dll下载地址:
https://system.data.sqlite.org/index.html/doc/trunk/www/downloads.wiki
二、区别
已编译好的System.Data.SQLite.dll分两种:完全的托管代码和混合程序集
(1)完全的托管代码
使用这种方式,在VS里引用时,只需要引用托管代码库System.Data.SQLite.dll,
然后将非托管(C++)代码库SQLite.Interop.dll放在应用程序同目录下即可(不需要引用)。
这两个文件在x86与x64的区别体现在SQLite.Interop.dll不同,System.Data.SQLite.dll
是一样的(二进制比对,都是Any CPU)。
(2)混合程序集
使用这种方式,在VS里引用时,只需要引用混合程序集System.Data.SQLite.dll
(将托管代码库System.Data.SQLite.dll与非托管(C++)代码库
SQLite.Interop.dll整合在一起了)
在VS里只需要x86和x64应用程序分别引用对应的System.Data.SQLite.dll(指定了对应的
处理架构)即可。
(3)总结
可以看到两种方式的System.Data.SQLite.dll的大小不同:
355K和1461K
(4)需要环境包
x64:The Visual C++ 2010 SP1 runtime for x64 and the .NET Framework 4.0 are required
https://www.microsoft.com/en-us/download/details.aspx?id=5555
x86:The Visual C++ 2010 SP1 runtime for x86 and the .NET Framework 4.0 are required.
https://www.microsoft.com/en-us/download/details.aspx?id=8328
.NET Framework 4.0:VS2010(.NET4.0)/ VS2012(.NET4.5)
https://dotnet.microsoft.com/download/dotnet-framework
我这里都使用4.0,但是是用VS2012开发的。