a blog for those who code

Friday, 8 June 2018

How to Fix Your startup project doesn't reference Microsoft.EntityFrameworkCore.Design

In this post we will be discussing about How to Fix Your startup project doesn't reference Microsoft.EntityFrameworkCore.Design. This package is required for the Entity Framework Core Tools to work. Ensure your startup project is correct, install the package, and try again.

When starting of a new ASP.NET Core project and running Update-Database in Package Manager Console you might have experienced the error "Your startup project doesn't reference Microsoft.EntityFrameworkCore.Design. This package is required for the Entity Framework Core Tools to work. Ensure your startup project is correct, install the package, and try again." This is because you have not selected your Entity Framework Project as your default project.



At first change the Default Project in the Package Manager Console to Entity Framework Core and then change the startup project to Entity Framework Core in the solution explorer.

And once you run Update-Database again, it will run successfully.

Please like and share the CodingDefined.com blog if you find it useful and helpful.

No comments:

Post a Comment