PacktPublishing/Mastering-ABP-Framework

Error Adding Migration

Opened this issue · 0 comments

As per page 28 if the book (The Add-Migration Command),

The Default Project in the PMC should be set to ProductManagement.EntityFrameworkCore and the StartUp Project must be set to ProductManagement.Web

However, when running the Add-Migration command, I get the error:

Your startup project 'ProductManagement.Web' 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.

The project was created by running the CLI "new" command as prescribed in the book.