将 SQLite-NET 与 UWP 结合使用 [英] Using SQLite-NET with UWP

查看:37
本文介绍了将 SQLite-NET 与 UWP 结合使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从 NuGet 下载了该包,但仍然没有 SQLite.cs 和 SQLiteAsync.cs 添加到项目中,如果 SQLite-NET 仍然不支持 VS 2015 RTM,任何可能的替代方案?

I downloaded the package from NuGet and still there's no SQLite.cs neither SQLiteAsync.cs added to the project, If SQLite-NET is still not supporting VS 2015 RTM, Any possible alternatives?

请注意,我尝试了 SQLite.NET-PCL,但仍然存在同样的问题.

Note that I tried SQLite.NET-PCL and still the same problem.

推荐答案

SQLite.NET-PCL 不应将这两个类直接添加到您的项目文件中.

SQLite.NET-PCL shouldn't add those two classes directly to your project files.

您是否通过 NuGet 下载了正确的 SQLite.NET-PCL?(当您在 NuGet 上搜索 SQLite.NET 时,会很混乱,因此很容易混淆并安装错误的).

Did you download the right SQLite.NET-PCL via NuGet? (there's a huge mess when you search for SQLite.NET on NuGet so it's easy to get confused and install the wrong one).

您是否安装了 SQLite VSIX 包,用于使用 Visual Studio 2015 进行通用应用平台开发.将其添加到您的项目引用中?

Did you install the SQLite VSIX package for Universal App Platform development using Visual Studio 2015. Did you add it to your project references?

您是否尝试阅读我关于此主题的博客文章:在 Windows 10 通用应用程序中使用 SQLite?

Have you tried reading my blog post on this topic: Using SQLite in Windows 10 Universal apps?

VS 2015 RTM 一切正常.

Everything should work OK with VS 2015 RTM.

这篇关于将 SQLite-NET 与 UWP 结合使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆