c# - UWP Entity Framework Core SQLITE 在 Release模式下崩溃

标签 c# sqlite uwp entity-framework-core .net-native

我已经使用entityframeworkcore.sqlite 2.0预发布版对我的通用应用程序进行了更新。

在调试配置中一切正常,但是当我在 VS 中切换发布配置并构建时,它会抛出错误“内部编译器错误对象引用未设置为对象”。

我认为这与 .net Native 的东西有关,但我无法深入了解它。关于如何进一步调试错误有什么建议吗?

此外,当我尝试将应用程序提交到商店时,我在失败的提交报告中收到以下内容:

FAILED
Supported APIs
Error Found: The supported APIs test detected the following errors:
API __acrt_iob_func in ucrtbased.dll is not supported for this application type. sqlite3.dll calls this API.
API __stdio_common_vfprintf in ucrtbased.dll is not supported for this application type. sqlite3.dll calls this API.
API _cexit in ucrtbased.dll is not supported for this application type. sqlite3.dll calls this API.
API _configure_narrow_argv in ucrtbased.dll is not supported for this application type. sqlite3.dll calls this API.
API _crt_at_quick_exit in ucrtbased.dll is not supported for this application type. sqlite3.dll calls this API.
API _crt_atexit in ucrtbased.dll is not supported for this application type. sqlite3.dll calls this API.
API _except1 in ucrtbased.dll is not supported for this application type. sqlite3.dll calls this API.
API _execute_onexit_table in ucrtbased.dll is not supported for this application type. sqlite3.dll calls this API.
API _initialize_narrow_environment in ucrtbased.dll is not supported for this application type. sqlite3.dll calls this API.
API _initialize_onexit_table in ucrtbased.dll is not supported for this application type. sqlite3.dll calls this API.
API _initterm in ucrtbased.dll is not supported for this application type. sqlite3.dll calls this API.
API _initterm_e in ucrtbased.dll is not supported for this application type. sqlite3.dll calls this API.
API _localtime64_s in ucrtbased.dll is not supported for this application type. sqlite3.dll calls this API.
API _register_onexit_function in ucrtbased.dll is not supported for this application type. sqlite3.dll calls this API.
API _seh_filter_dll in ucrtbased.dll is not supported for this application type. sqlite3.dll calls this API.
API _wassert in ucrtbased.dll is not supported for this application type. sqlite3.dll calls this API.
API fflush in ucrtbased.dll is not supported for this application type. sqlite3.dll calls this API.
API free in ucrtbased.dll is not supported for this application type. sqlite3.dll calls this API.
API log in ucrtbased.dll is not supported for this application type. sqlite3.dll calls this API.
API malloc in ucrtbased.dll is not supported for this application type. sqlite3.dll calls this API.
API qsort in ucrtbased.dll is not supported for this application type. sqlite3.dll calls this API.
API rand_s in ucrtbased.dll is not supported for this application type. sqlite3.dll calls this API.
API strcmp in ucrtbased.dll is not supported for this application type. sqlite3.dll calls this API.
API strlen in ucrtbased.dll is not supported for this application type. sqlite3.dll calls this API.
API strncmp in ucrtbased.dll is not supported for this application type. sqlite3.dll calls this API.
API __std_type_info_destroy_list in vcruntime140d_app.dll is not supported for this application type. sqlite3.dll calls this API.
API _except_handler4_common in vcruntime140d_app.dll is not supported for this application type. sqlite3.dll calls this API.
API memcmp in vcruntime140d_app.dll is not supported for this application type. sqlite3.dll calls this API.
API memcpy in vcruntime140d_app.dll is not supported for this application type. sqlite3.dll calls this API.
API memmove in vcruntime140d_app.dll is not supported for this application type. sqlite3.dll calls this API.
API memset in vcruntime140d_app.dll is not supported for this application type. sqlite3.dll calls this API.

随后

调试配置测试
失败
调试配置
发现错误:调试配置测试检测到以下错误:
二进制 sqlite3.dll 是在 Debug模式下构建的。

最佳答案

谢谢,我降级到1.1.2并以 Release模式编译。但仍然未能通过 Windows 认证。

关于c# - UWP Entity Framework Core SQLITE 在 Release模式下崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44238316/

相关文章:

c# - Entity Framework Core 自动生成的指南

c# - 元组与字符串作为 C# 中的字典键

android - Sqlite 数据库更新触发 Service 通过 Content Observer 更新

node.js - SQLITE_BUSY Node.js 的 Azure 只读问题

android - 如何在 Xamarin 上创建一个根据平台执行不同操作的函数?

c++ - 如何从 c++ winrt UWP 应用程序中的代码将文本添加到 RichTextBlock,

c# - 将 datetime2 数据类型转换为 datetime 数据类型导致值超出范围 - 未使用 DateTime2

C# <===> VB.Net 关键字映射

mysql - 通过查询计算 SQLiteDB 的下四分位数和上四分位数

c# - XAML 自定义文本框光标停留在输入开始处