How can I deploy SQLite in WinRT devices with an A

2019-02-15 10:48发布

问题:

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

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?

Thanks,

Adrian

回答1:

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.

Good blog post on Windows on the ARM architecture.



回答2:

The only thing I know is that Microsoft is working with guys from SQLLite and is now officially supported