【問題】
在我本機的開發環境c#連接sqlite3沒有問題,可是release版本移植到其他的機器就提示Could not load file or assembly'System.Data.SQLite.dll' or one of its depedencies。找不到指定模塊。
【解決】
搜來搜去沒找到靠譜的答案,其實最后還是自己解決的。
sqlite官方的下載頁面里面說了:The Visual C++ 2010 SP1 runtime for x86 and the .NET Framework 4.0 are required.
也就是說,除了要安裝.Net Framework 4.0之外,還要安裝The Visual C++ 2010 SP1 runtime,這是微軟的一個單獨補丁包,下載地址:http://www.microsoft.com/downloads/zh-cn/details.aspx?familyid=c32f406a-f8fc-4164-b6eb-5328b8578f03
雲盤地址:雲盤>常用軟件>Other>vcredist_x86.exe
裝好該補丁包之后,就一切OK了。 (前提:exe目錄下存在'System.Data.SQLite.dll'這個dll文件)