使用 Visual Studio 在 WINDOWS STORE 中使用 Mysql.dll 发布 UWP 时出错
Error publishing UWP with Mysql.dll in WINDOWS STORE using Visual Studio
我在 Windows 商店 (microsoft) 发帖时遇到以下错误。
API CreateFileW in kernel32.dll is not supported for this application
type. MySql.Data.dll calls this API.
API MapViewOfFile in kernel32.dll is not supported for this application type. MySql.Data.dll calls this API.
API OpenFileMappingW in kernel32.dll is not supported for this
application type. MySql.Data.dll calls this API.
API AcquireCredentialsHandleW in secur32.dll is not supported for this application type. MySql.Data.dll calls this API.
API CompleteAuthToken in secur32.dll is not supported for this application type. MySql.Data.dll calls this API.
API DeleteSecurityContext in secur32.dll is not supported for this application type. MySql.Data.dll calls this API.
API FreeCredentialsHandle in secur32.dll is not supported for this application type. MySql.Data.dll calls this API.
API InitializeSecurityContextW in secur32.dll is not supported for
this application type. MySql.Data.dll calls this API.
API QueryContextAttributesW in secur32.dll is not supported for this
application type. MySql.Data.dll calls this API.
错误很严重 self-explanatory - UWP 不支持 MySQL.Data.Dll
使用的 API。
如果您想发布到 Microsoft Store,您有几个选择:
- 如果可能,寻找 MySQL 的 UWP-compatible 版本。其中一些 API 失败可以用较新的 API 调用轻松替换,而其他一些可能对 app-local 数据库没有意义。
- 我们一直在努力提高与现有代码的兼容性,但现在我们不能/不支持所有这些 API。
- 如果您无法获得 MySQL 的 UWP-compliant 版本,请尝试其他数据库,如 SQLite。 SQLite 现在是 built-in to Windows 并且有一个 UWP-compatible 版本,如果您需要支持 14393
之前的 Windows 版本,您可以在您的应用程序中发布
- 如果您必须使用MySQL并且无法获得UWP-compliant版本,您可以尝试发布为桌面桥应用程序
- 虽然这需要特殊许可,但现在您不能将这样的旧式 API 调用与现代 XAML UI 混合使用 - 它们必须在不同的进程中。
我在 Windows 商店 (microsoft) 发帖时遇到以下错误。
API CreateFileW in kernel32.dll is not supported for this application type. MySql.Data.dll calls this API.
API MapViewOfFile in kernel32.dll is not supported for this application type. MySql.Data.dll calls this API.
API OpenFileMappingW in kernel32.dll is not supported for this application type. MySql.Data.dll calls this API.
API AcquireCredentialsHandleW in secur32.dll is not supported for this application type. MySql.Data.dll calls this API.
API CompleteAuthToken in secur32.dll is not supported for this application type. MySql.Data.dll calls this API.
API DeleteSecurityContext in secur32.dll is not supported for this application type. MySql.Data.dll calls this API.
API FreeCredentialsHandle in secur32.dll is not supported for this application type. MySql.Data.dll calls this API.
API InitializeSecurityContextW in secur32.dll is not supported for this application type. MySql.Data.dll calls this API.
API QueryContextAttributesW in secur32.dll is not supported for this application type. MySql.Data.dll calls this API.
错误很严重 self-explanatory - UWP 不支持 MySQL.Data.Dll
使用的 API。
如果您想发布到 Microsoft Store,您有几个选择:
- 如果可能,寻找 MySQL 的 UWP-compatible 版本。其中一些 API 失败可以用较新的 API 调用轻松替换,而其他一些可能对 app-local 数据库没有意义。
- 我们一直在努力提高与现有代码的兼容性,但现在我们不能/不支持所有这些 API。
- 如果您无法获得 MySQL 的 UWP-compliant 版本,请尝试其他数据库,如 SQLite。 SQLite 现在是 built-in to Windows 并且有一个 UWP-compatible 版本,如果您需要支持 14393 之前的 Windows 版本,您可以在您的应用程序中发布
- 如果您必须使用MySQL并且无法获得UWP-compliant版本,您可以尝试发布为桌面桥应用程序
- 虽然这需要特殊许可,但现在您不能将这样的旧式 API 调用与现代 XAML UI 混合使用 - 它们必须在不同的进程中。