3
Following guys I’m trying to use the new Efcore being that with Mysql, I installed the following packages nuget
:
Install-Package Mysql.Data.Entityframeworkcore -Pre Install-Package Microsoft.EntityFrameworkCore.Tools -Pre
using the following tutorial: https://docs.efproject.net/en/latest/platforms/full-dotnet/new-db.html
but when I execute the command to add to migration
the following error occurs:
Could not load file or assembly 'MySql.Data.EntityFrameworkCore, Version=7.0.5.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies. Strong name signature could not be verified. The assembly may have been tampered with, or it was delay signed but not fully signed with the correct private key. (Exception from HRESULT: 0x80131045)
I’ve done this same tutorial with SQLServer
and it worked perfectly.
See here a similar situation: http://stackoverflow.com/questions/2041051/could-not-load-file-or-assembly-mysql-data-version-6-2-2-0
– rubStackOverflow
Suddenly this link helps you. Hugs! https://social.technet.microsoft.com/wiki/pt-br/contents/articles/17952.entity-framework-code-first-migrations-com-mysql.aspx
– Anderson Machado
Then, it turned out that it was a problem of the same pre-release version, fortunately it is not occurring anymore. Thanks to all for the answers!
– wellington