简体   繁体   English

SQLite和VS2013的问题

[英]Problems with SQLite and VS2013

I've got a (hopefully) simple question. 我有一个(希望)简单的问题。 We're using Visual Studio 2013 and have a .Net 4.0 project. 我们正在使用Visual Studio 2013,并且有一个.Net 4.0项目。 We would like to use a SQLite Database in this project. 我们想在这个项目中使用一个SQLite数据库。 But all we can find are installations for VS2010 + .Net 4.0. 但是我们只能找到VS2010 + .Net 4.0的安装。 If i Install this Version I cannot add a SQLite Connection in the Server Explorer view. 如果我安装此版本,则无法在“服务器资源管理器”视图中添加SQLite连接。

Is this in generall not possible or is there a way to add a SQLite Connection using VS2013 and .Net 4.0? 通常这是不可能的,还是有一种使用VS2013和.Net 4.0添加SQLite连接的方法?

Thanks in advance 提前致谢

Here is the link to the SQLite package for .NET 4.5.1 with design-time components for Visual Studio 2013. 这是指向.NET 4.5.1的SQLite程序包的链接,其中包含 Visual Studio 2013的设计时组件。

Unfortunately, as stated on the SQLite website: 不幸的是,正如SQLite网站上所述:

This setup package features the mixed-mode assembly and will install all the necessary runtime components and dependencies for the x86 version of the System.Data.SQLite 1.0.97.0 (3.8.10.2) package. 此安装程序包具有混合模式程序集,并将为System.Data.SQLite 1.0.97.0(3.8.10.2)包的x86版本安装所有必需的运行时组件和依赖项。 The Visual C++ 2013 Update 2 runtime for x86 is included. 包含适用于x86的Visual C ++ 2013 Update 2运行时。 The .NET Framework 4.5.1 is required. .NET Framework 4.5.1是必需的。
This is the only setup package that is capable of installing the design-time components for Visual Studio 2013. 这是唯一能够安装Visual Studio 2013设计时组件的安装程序包。

So you would have to choose between: 因此,您必须在以下两者之间进行选择:

  • Upgrade your project to .NET Framework 4.5.1 将项目升级到.NET Framework 4.5.1
  • Use the SQLite dll for .NET Framework 4.0 and don't have the design-time components 将SQLite dll用于.NET Framework 4.0,并且没有设计时组件

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM