加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

使用SQLite-WinRT包装器构建问题

发布时间:2020-12-12 19:08:19 所属栏目:百科 来源:网络整理
导读:在添加SQLite-WinRT数据库包装器后,我无法让我的应用程序为ARM目标构建.我可以用一个简单的测试应用程序重现这一点,如下所示: (这是在Visual Studio 2013中完成的.) 创建一个空的Windows 8.1通用应用程序(WinRT) 使用工具/扩展和更新下载适用于Windows Phon
在添加SQLite-WinRT数据库包装器后,我无法让我的应用程序为ARM目标构建.我可以用一个简单的测试应用程序重现这一点,如下所示:

(这是在Visual Studio 2013中完成的.)

>创建一个空的Windows 8.1通用应用程序(WinRT)
>使用工具/扩展和更新下载适用于Windows Phone 8.1的SQLite和适用于Windows运行时的SQLite(Windows 8.1).将它们添加到相应项目的参考中.
>使用NuGet,将SQLite-WinRT包添加到每个项目.
>为x86(本地机器或手机模拟器)构建 – >没问题.
>针对ARM构建(电话设备) – >下面显示的构建错误(独立于调试或发布版本).

There was a mismatch between the processor architecture of the project being built “ARM” and the processor architecture,“x86”,of the implementation file “C:UsersjrDocumentsVisual Studio 2015Projectssqlite-testpackagesSqlite-Winrt.3.8.7.1libwpa81SQLiteWinRT.dll” for “C:UsersjrDocumentsVisual Studio 2015Projectssqlite-testpackagesSqlite-Winrt.3.8.7.1libwpa81SQLiteWinRT.winmd”. This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and implementation file,or choose a winmd file with an implementation file that has a processor architecture which matches the targeted processor architecture of your project.

我发布了一个小型测试项目here(Windows Phone 8.1空项目,添加了SQLite,通过NuGet添加了SQLite-WinRT).

转到项目属性打开构建选项卡并将目标平台设置为ARM

编辑
你添加了WinRt sqlite.它是在x86上建立的,当你想在ARM进程体系结构上构建它时,它无法构建你需要删除WinRTSQlite dll,而不是你的项目可以正常工作.这是Code

希望这可以帮助

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读