gpt4 book ai didi

c# - 在UWP for Store Apps中引用sqlite3.dll

转载 作者:行者123 更新时间:2023-12-01 19:34:11 25 4
gpt4 key购买 nike

我们有一个利用 Xamarin Forms 的 UWP 应用。它通过这个 .NET 标准库使用 SQLite:

https://github.com/MelbourneDeveloper/SQLite.Net.Standard (这是我的库,它是 https://github.com/oysteinkrog/SQLite.Net-PCL 的一个分支)

SQLite 在 Debug模式下工作正常,并且在为 .NET Native 编译时也工作正常。我相信我们正在通过 Visual Studio 插件引用物理 C sqlite3 库文件,如下所示:

enter image description here但是,当我们尝试将其上传到商店时,我们收到以下一系列错误消息:

API sqlite3_backup_finish in libsqlite3_for_net.dll is not supported for this application type. SQLite.Net.Standard.dll calls this API.

API sqlite3_backup_init in libsqlite3_for_net.dll is not supported for this application type. SQLite.Net.Standard.dll calls this API.

API sqlite3_backup_pagecount in libsqlite3_for_net.dll is not supported for this application type. SQLite.Net.Standard.dll calls this API.

API sqlite3_backup_remaining in libsqlite3_for_net.dll is not supported for this application type. SQLite.Net.Standard.dll calls this API.

API sqlite3_backup_step in libsqlite3_for_net.dll is not supported for this application type. SQLite.Net.Standard.dll calls this API.

API sqlite3_bind_blob in libsqlite3_for_net.dll is not supported for this application type. SQLite.Net.Standard.dll calls this API.

API sqlite3_bind_double in libsqlite3_for_net.dll is not supported for this application type. SQLite.Net.Standard.dll calls this API.

API sqlite3_bind_int in libsqlite3_for_net.dll is not supported for this application type. SQLite.Net.Standard.dll calls this API.

API sqlite3_bind_int64 in libsqlite3_for_net.dll is not supported for this application type. SQLite.Net.Standard.dll calls this API.

API sqlite3_bind_null in libsqlite3_for_net.dll is not supported for this application type. SQLite.Net.Standard.dll calls this API.

API sqlite3_bind_parameter_index in libsqlite3_for_net.dll is not supported for this application type. SQLite.Net.Standard.dll calls this API.

API sqlite3_bind_text16 in libsqlite3_for_net.dll is not supported for this application type. SQLite.Net.Standard.dll calls this API.

API sqlite3_busy_timeout in libsqlite3_for_net.dll is not supported for this application type. SQLite.Net.Standard.dll calls this API.

API sqlite3_changes in libsqlite3_for_net.dll is not supported for this application type. SQLite.Net.Standard.dll calls this API.

API sqlite3_close in libsqlite3_for_net.dll is not supported for this application type. SQLite.Net.Standard.dll calls this API.

API sqlite3_column_blob in libsqlite3_for_net.dll is not supported for this application type. SQLite.Net.Standard.dll calls this API.

API sqlite3_column_bytes in libsqlite3_for_net.dll is not supported for this application type. SQLite.Net.Standard.dll calls this API.

API sqlite3_column_count in libsqlite3_for_net.dll is not supported for this application type. SQLite.Net.Standard.dll calls this API.

API sqlite3_column_double in libsqlite3_for_net.dll is not supported for this application type. SQLite.Net.Standard.dll calls this API.

API sqlite3_column_int in libsqlite3_for_net.dll is not supported for this application type. SQLite.Net.Standard.dll calls this API.

API sqlite3_column_int64 in libsqlite3_for_net.dll is not supported for this application type. SQLite.Net.Standard.dll calls this API.

API sqlite3_column_name16 in libsqlite3_for_net.dll is not supported for this application type. SQLite.Net.Standard.dll calls this API.

API sqlite3_column_text16 in libsqlite3_for_net.dll is not supported for this application type. SQLite.Net.Standard.dll calls this API.

API sqlite3_column_type in libsqlite3_for_net.dll is not supported for this application type. SQLite.Net.Standard.dll calls this API.

API sqlite3_config in libsqlite3_for_net.dll is not supported for this application type. SQLite.Net.Standard.dll calls this API.

API sqlite3_enable_load_extension in libsqlite3_for_net.dll is not supported for this application type. SQLite.Net.Standard.dll calls this API.

API sqlite3_errmsg16 in libsqlite3_for_net.dll is not supported for this application type. SQLite.Net.Standard.dll calls this API.

API sqlite3_extended_errcode in libsqlite3_for_net.dll is not supported for this application type. SQLite.Net.Standard.dll calls this API.

API sqlite3_finalize in libsqlite3_for_net.dll is not supported for this application type. SQLite.Net.Standard.dll calls this API.

API sqlite3_initialize in libsqlite3_for_net.dll is not supported for this application type. SQLite.Net.Standard.dll calls this API.

API sqlite3_last_insert_rowid in libsqlite3_for_net.dll is not supported for this application type. SQLite.Net.Standard.dll calls this API.

API sqlite3_libversion_number in libsqlite3_for_net.dll is not supported for this application type. SQLite.Net.Standard.dll calls this API.

API sqlite3_open in libsqlite3_for_net.dll is not supported for this application type. SQLite.Net.Standard.dll calls this API.

API sqlite3_open16 in libsqlite3_for_net.dll is not supported for this application type. SQLite.Net.Standard.dll calls this API.

API sqlite3_open_v2 in libsqlite3_for_net.dll is not supported for this application type. SQLite.Net.Standard.dll calls this API.

API sqlite3_prepare16_v2 in libsqlite3_for_net.dll is not supported for this application type. SQLite.Net.Standard.dll calls this API.

API sqlite3_reset in libsqlite3_for_net.dll is not supported for this application type. SQLite.Net.Standard.dll calls this API.

API sqlite3_shutdown in libsqlite3_for_net.dll is not supported for this application type. SQLite.Net.Standard.dll calls this API.

API sqlite3_sleep in libsqlite3_for_net.dll is not supported for this application type. SQLite.Net.Standard.dll calls this API.

API sqlite3_sourceid in libsqlite3_for_net.dll is not supported for this application type. SQLite.Net.Standard.dll calls this API.

API sqlite3_step in libsqlite3_for_net.dll is not supported for this application type. SQLite.Net.Standard.dll calls this API.

API sqlite3_win32_set_directory in libsqlite3_for_net.dll is not supported for this application type. SQLite.Net.Standard.dll calls this API.

所以,我的问题是:微软为什么拒绝这个

环顾四周,我们似乎使用了错误版本的 sqlite 3 库。但是,我们应该使用哪一个? Xamarin 有特定的吗?为什么该包会生成一个名为 libsqlite3_for_net.dll 的文件?为什么不只是 sqlite3.dll?

是否有关于如何将 SQLite 添加到 Windows 应用商店中的应用程序的文档?

最佳答案

问题是 libsqlite3_for_net.dll 仅在 iOS 上可用。从共享代码中删除该 dll 的 DllImport,以便在没有该 dll 的平台上不需要该 dll。

关于c# - 在UWP for Store Apps中引用sqlite3.dll,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46555591/

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