.Maui Blog

[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
Exit mobile version