MySql.Data包似乎与Windows10NovermberUpdate (10.0;Build 10586)不兼容。
为了在模拟器上运行我的应用程序,我需要将最小目标设置为Windows 10 Novermber Update。但我也需要mysql连接。我能做什么?
Package MySql.Data 8.0.11 is not compatible with uap10.0.10586 (UAP,Version=v10.0.10586)编辑:,所以我尝试安装Mysql.Data的旧版本(6.10.6)。它已成功安装,但现在,当我试图连接到Mysql数据库时,它会给出以下错误:
FileNotFoundException: Could not load file or assembly
'System.Diagnostics.Process, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified.connString = "*********";
mcon = new MySqlConnection(connString);
cmd = mcon.CreateCommand();
mcon.Open();//error happens at this line发布于 2018-04-25 06:09:35
由于NuGet MySql.Data 6.10.6依赖项,它要求UWP应用程序16299版现在只支持.NETStandard 2.0版本(请参阅.NET标准),因此如果您想在UWP应用程序中使用该NuGet,您应该在秋季创建程序更新版本16299上同时设置应用程序目标版本和最小版本。
因此,作为MySql.Data 8.0.11,您还需要在秋季Creators 16299上同时设置应用程序目标版本和最小版本。
https://stackoverflow.com/questions/50001300
复制相似问题