如何在带有 ARM CPU 的 WinRT 设备中部署 SQLite? [英] How can I deploy SQLite in WinRT devices with an ARM CPU?

查看:24
本文介绍了如何在带有 ARM CPU 的 WinRT 设备中部署 SQLite?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个 C# Window8/WinRT 应用程序,我正在使用 SQLite-NET 和链接在文档底部的 sqlite3.dll

I'm developing a C# Window8 / WinRT app and I'm using SQLite-NET with the sqlite3.dll linked at the bottom of the documentation at

https://github.com/praeclarum/sqlite-net

我的项目在我的计算机上运行良好,但由于 sqlite 是一个非托管 DLL,我想知道当我将我的应用程序部署到应用程序商店并且使用 ARM cpu 的人尝试运行它时会发生什么.去上班了吗?如果没有,我该如何使它工作?

My project works fine on my computer, but since sqlite is a non-managed DLL, I wonder what's going to happen when I deploy my app to the app store and someone with an ARM cpu tries to run it. Is it going work? If not, how can I make it work?

谢谢,

阿德里安

推荐答案

不,这行不通.当涉及 C++ 组件时,您不能选择中性架构(任何 CPU).您必须将 SQLite DLL 编译到 ARM 中才能获得 ARM 版本.如果您有本机组件,您将为应用商店提交多个版本,客户将下载适合其架构的正确版本.

No, it's not going to work. You cannot choose a neutral architecture (Any CPU) when there is a C++ component involved. You will have to compile your SQLite DLL into ARM in order for you to have an ARM version. If you have a native component, you will submit multiple versions for the Store and the customer will download the correct version for their architecture.

关于 基于 ARM 架构的 Windows.

这篇关于如何在带有 ARM CPU 的 WinRT 设备中部署 SQLite?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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