[RESOLVED] Your target project ‘MyAspnetCoreApp’ doesn’t reference EntityFramework.

In our case the problem was that we installed the Microsoft.EntityFrameworkCore package and not EntityFramework.
To solve the problem just add the namespace to the commands to run in the PM console.
So to create a new migration:

EntityFrameworkCore\Add-Migration firstMigration.

Than update the database:

EntityFrameworkCore\Update-Database

Leave a Comment

Your email address will not be published. Required fields are marked *