开发者

system.data.sqlite .net 4

开发者 https://www.devze.com 2022-12-26 11:13 出处:网络
Is there a .Net 4 version of 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 开发者_开

Is there a .Net 4 version of 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.

What is the "additional configuration information" that is needed, or alternatively is there another version that I can use?


<configuration>
  <startup useLegacyV2RuntimeActivationPolicy="true">
    <supportedRuntime version="v4.0"/>
  </startup>
</configuration>


According to the forums of 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.

Although the message was posted in october 2009 there are some workarounds.

Further there seems to be an updated (temporary) version specially for .NET 4:


Yes, there is now.

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 .

0

精彩评论

暂无评论...
验证码 换一张
取 消