uwp app使用Mysql.data.rt.dll

时间:2016-04-18 09:14:29

标签: mysql win-universal-app

API CancelIo in kernel32.dll is not supported for this application type. MySql.Data.RT.dll calls this API.
API CreateFileW in kernel32.dll is not supported for this application type. MySql.Data.RT.dll calls this API.
API MapViewOfFile in kernel32.dll is not supported for this application type. MySql.Data.RT.dll calls this API.
API OpenFileMappingW in kernel32.dll is not supported for this application type. MySql.Data.RT.dll calls this API.
API PeekNamedPipe in kernel32.dll is not supported for this application type. MySql.Data.RT.dll calls this API.
API WaitNamedPipeA in kernel32.dll is not supported for this application type. MySql.Data.RT.dll calls this API.
API AcquireCredentialsHandleW in secur32.dll is not supported for this application type. MySql.Data.RT.dll calls this API.
API CompleteAuthToken in secur32.dll is not supported for this application type. MySql.Data.RT.dll calls this API.
API DeleteSecurityContext in secur32.dll is not supported for this application type. MySql.Data.RT.dll calls this API.
API FreeCredentialsHandle in secur32.dll is not supported for this application type. MySql.Data.RT.dll calls this API.
API InitializeSecurityContextW in secur32.dll is not supported for this application type. MySql.Data.RT.dll calls this API.
API QueryContextAttributesW in secur32.dll is not supported for this application type. MySql.Data.RT.dll calls this API.

请帮忙解决这个问题。

由于

2 个答案:

答案 0 :(得分:1)

从版本连接器/ Net 6.7

开始支持WinRT(以及UWP)应用程序

如果你从NuGet安装,可能你的版本较低。使用direct link进行下载,安装完成后,您会在文件夹中找到这样的dll:
C:\ Program Files(x86)\ MySQL \ MySQL Connector Net 6.9.8 \ Assemblies \ RT \

答案 1 :(得分:1)

我有同样的问题。我用来克服的方法是评论未经认证的API并再次编译连接器。

如果您想使用我的解决方案,或者甚至更好地改进它,请在以下方面使用并做出贡献:

https://github.com/nudaca/MySql.Data.UWP