system.data.sqlite .net 4
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2605490/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
system.data.sqlite .net 4
提问by Behrooz
Is there a .Net 4 version of System.Data.SQLite?
是否有 .Net 4 版本的 System.Data.SQLite?
At the moment I get this error:
目前我收到此错误:
Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information.
混合模式程序集是针对运行时的“v2.0.50727”版本构建的,如果没有附加配置信息,则无法在 4.0 运行时中加载。
What is the "additional configuration information" that is needed, or alternatively is there another version that I can use?
需要什么“附加配置信息”,或者我可以使用其他版本吗?
回答by Darin Dimitrov
<configuration>
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0"/>
</startup>
</configuration>
回答by Rhapsody
According to the forums of PhxSoftware:
根据PhxSoftware的论坛:
It's not high on my priority list right at the moment. When VS2010 comes closer to release I'll be updating the library to work with it.
目前它在我的优先级列表中并不高。当 VS2010 接近发布时,我将更新库以使用它。
Although the message was posted in october 2009 there are some workarounds.
尽管该消息是在 2009 年 10 月发布的,但仍有一些解决方法。
Further there seemsto be an updated (temporary) version specially for .NET 4:
此外,似乎有一个专门针对 .NET 4 的更新(临时)版本:
回答by deerchao
Yes, there is now.
是的,现在有了。
http://system.data.sqlite.org/index.html/doc/trunk/www/downloads.wiki
http://system.data.sqlite.org/index.html/doc/trunk/www/downloads.wiki
And you can use NuGet to install it as well. With nuget, its easy to choose between x86/x64/both, http://www.nuget.org/packages?q=system.data.sqlite.
你也可以使用 NuGet 来安装它。使用 nuget,可以轻松地在 x86/x64/both、http://www.nuget.org/packages?q=system.data.sqlite 之间进行选择。

