gpt4 book ai didi

sqlite - 错误 : while working with SQLite in windows phone 8

转载 作者:行者123 更新时间:2023-12-03 19:40:23 25 4
gpt4 key购买 nike

这是我的第一篇文章。我收到这个错误

The processor architecture of the project being built "Any CPU" is not supported by the referenced SDK "SQLite.WP80, Version=3.8.10.2". Please consider changing the targeted processor architecture of your project (in Visual Studio this can be done through the Configuration Manager) to one of the architectures supported by the SDK: "x86, ARM".



在使用 Windows Phone 应用程序和使用 SQLite 时。如果我将架构设置为 ARM,那么它将消失,但我收到另一个错误,即 SQLite.cs 文件中的命名空间中缺少“社区”。任何人都可以帮助我吗?提前致谢。

最佳答案

按照这个:

Tools -> Extension and Updates Menu 安装扩展“SQLite for Windows Phone” .检查截图 1

enter image description here

然后安装 NuGet 包sqlite-net-wp8来自 NuGet 包管理器。检查截图 2

enter image description here

然后添加条件编译符号USE_WP8_NATIVE_SQLITE在项目属性-> build设置中。检查截图 3

enter image description here

然后尝试重建解决方案,错误将消失..!

(我假设您已经复制了这两个文件 SQLite.csSQLiteAsync.cs )

引用链接:

http://social.technet.microsoft.com/wiki/contents/articles/18204.how-to-use-sqlite-with-a-windows-phone-8-application.aspx

Type or namespace 'Sqlite' could not be found in SQLite.cs

关于sqlite - 错误 : while working with SQLite in windows phone 8,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30394119/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com