Search code examples
mysql.netentity-frameworkmysql.data

Could not load file or assembly 'MySql.Data.EntityFramework, Version=8.0.19.0 or one of its dependencies


I have just installed the latest version of MySQL.Data.EntityFramework Version 8.0.19.

The first time I run the code I got the following error:

The latest nuget package (MySql.Data 8.0.19) contains an unsigned version of Ubiety.Dns.Core.dll. This results in an exception while loading.

according to: this bug report, I need to install: Ubiety.Dns.Core/ package... so I installed this package. Now I am getting the following exception:

Could not load file or assembly 'MySql.Data.EntityFramework, Version=8.0.19.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies.


As a workaround I tried to install the previous version, MySQL.Data.EntityFramework Version 8.0.18 but I cannot find any previous version: MySql.Data.EntityFramework Nuget.

Anyone knows if the previous versions have been removed?


Solution

  • For those who do not want the thousands of redundant warnings that for some reason appears with Ubiety.Dns.Core -- installing an earlier version worked fine for me:

    Install-Package Ubiety.Dns.Core -Version 2.4.1