SQLite Windows 10 RTM 通用应用 [英] SQLite Windows 10 RTM universal app

查看:55
本文介绍了SQLite Windows 10 RTM 通用应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用 Windows 10 RTM 和 Visual Studio 2015 RTM SQLite 不再起作用.

With the Windows 10 RTM and Visual Studio 2015 RTM SQLite doesn't work any more.

例如,http 上的教程://igrali.com/2015/05/01/using-sqlite-in-windows-10-universal-apps/ 不会将 SQLLite.cs 和 SQLiteAsync.cs 文件添加到我的项目中,适用于 Windows UAP 的 Microsoft Visual C++ Applocal 运行时包"参考对我不可用.

For instance, the tutorial at http://igrali.com/2015/05/01/using-sqlite-in-windows-10-universal-apps/ will not add the SQLLite.cs and SQLiteAsync.cs files to my project, also the "Microsoft Visual C++ Applocal runtime Package for Windows UAP" reference is not available for me.

有趣的是它适用于 RC 版本......

The funny thing is it worked with the RC versions ...

SQLite 版本:sqlite-uap-3081101.vsix (5.73 MiB)

SQLite Version: sqlite-uap-3081101.vsix (5.73 MiB)

推荐答案

使用 sqlite-uap-3081101.vsix 和 VS2015 RTM &Windows 10 SDK 的 10240 版本生成以下警告:

Using sqlite-uap-3081101.vsix with VS2015 RTM & the 10240 release of the Windows 10 SDK generates the following warnings:

SDK "SQLite.UAP.2015, Version=3.8.11.1" 依赖如下SDK(s) "Microsoft.VCLibs.AppLocal, version=14.0",尚未添加到项目中或未找到.

The SDK "SQLite.UAP.2015, Version=3.8.11.1" depends on the following SDK(s) "Microsoft.VCLibs.AppLocal, version=14.0", which have not been added to the project or were not found.

这是因为 SQLite 扩展依赖于 AppLocal 运行时包.理论上,在添加扩展作为参考时会自动引用该包,但是,该包似乎不再包含在 W10 SDK 的引用版本中.

This is because the SQLite extension is dependent on the AppLocal Runtime Package. In theory the package would be automatically referenced when adding the extension as a reference, however, the package no longer seems to be included in the referenced release of the W10 SDK.

AppLocal 运行时包已被替换为 CRT 包,如 W8 &VS2015 + W10 SDK 发行版中的 W8.1.

The AppLocal Runtime Package has been replaced with a CRT package like W8 & W8.1 in the release versions of VS2015 + W10 SDK.

如果您添加对Visual C++ 2015 Runtime for Universal Windows Platform Apps"的引用,您的应用将构建并运行,尽管在 SQLite 扩展更新之前会出现警告.

If you add a reference to "Visual C++ 2015 Runtime for Universal Windows Platform Apps" your app will build and run although there'll be warnings until the SQLite extension is updated.

虽然您可以直接从 SQLite-net 中包含 SQLLite.cs 和 SQLiteAsync.cs,如果您按照教程使用 nuget 来引用库,那么您将不会在项目中看到这些文件,尽管这些类可用于你来使用.

Whilst you can just include SQLLite.cs and SQLiteAsync.cs from SQLite-net directly if you're using nuget to reference a library as per the tutorial then you wont see the files in your project although the classes will be available for you to use.

这篇关于SQLite Windows 10 RTM 通用应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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