Sqlite.DLL引用错误 [英] Sqlite.DLL reference error
问题描述
我正在尝试将Sqlite.dll合并到我的一个项目中。在我的系统上正常工作......但是当我将此应用程序移植到另一个系统时会出现问题。它说
无法加载文件或程序集''System.Data.Sqlite,Version = 1.0.66.0,Culture = Neutral,PublicKeyToken = db937bc2d44ff139''或其中一个依赖项。试图加载格式不正确的程序。
我的目标是应用程序在.Net 3.5平台上运行。请帮助!
提前致谢!
Sunny
I''m trying to incorporate Sqlite.dll into one of my projects. Works fine on my system... but problem occurs when I port this application to another system. It says
Could not load file or assembly ''System.Data.Sqlite, Version=1.0.66.0, Culture=Neutral, PublicKeyToken=db937bc2d44ff139'' or one of it''s dependencies. An attempt was made to load a program with an incorrect format.
I''m targeting the application to run on .Net 3.5 Platform. Please Help!
Thanks in Advance!
Sunny
推荐答案
我建议您要求用户安装适当版本的SQLite作为软件产品的先决条件之一,以及兼容的.NET Framework版本。在我看来,对于大多数情况来说这是一个更好的选择。
但是,你可以考虑在你的应用程序中部署它们。
对于.NET,请参阅: http://msdn.microsoft.com/en-us/library/6hbb4k3e%28v=vs.90%29.aspx [ ^ ]。
对于SQLite,您必须研究问题: http://bit.ly/WnY14r [ ^ ]。
祝你好运,
-SA
I would suggest that you require the user to have SQLite of appropriate version to be installed as one of the prerequisites for your software product, as well as the compatible .NET Framework version. In my opinion, this is a preferable option for most cases.
However, you can consider to deploy either of them with your application.
For .NET, please see: http://msdn.microsoft.com/en-us/library/6hbb4k3e%28v=vs.90%29.aspx[^].
For SQLite, you have to study the problem: http://bit.ly/WnY14r[^].
Good luck,
—SA
这篇关于Sqlite.DLL引用错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!