Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get rid of this warning of EF in Visual Studio 2019: A version of Entity Framework older than 6.3 is also installed

I just added EntityFramework 6.4.4 to the project with the command:

Install-Package EntityFramework -Version:6.4.4

And then, I enabled migrations. Since then, every time I execute an EF command, I get the warning:

A version of Entity Framework older than 6.3 is also installed. The newer tools are running. Use 'EntityFramework\Update-Database' for the older version.

It's annoying. How can I get rid of it? I have tried to do:

Uninstall-Package EntityFramework -Force
Install-Package EntityFramework -Pre

But it didn't solve the problem.

like image 899
amedina Avatar asked Oct 20 '25 20:10

amedina


1 Answers

I had this problem after I had tried to downgrade my EF version to 6.2 from 6.4.4. I now had both versions installed in my packages folder under the main solution. I had to delete the 6.2 version folder and this problem went away.

like image 84
allan Avatar answered Oct 24 '25 03:10

allan