jasontaylordev / CleanArchitecture

Clean Architecture Solution Template for ASP.NET Core
MIT License
17.04k stars 3.65k forks source link

Create new migrations with cli #1232

Closed huenchunb closed 2 days ago

huenchunb commented 1 month ago

When I Create a new Migrations with this command, dotnet ef migrations add "SampleMigration" --project src\Infrastructure --startup-project src\Web --output-dir Data\Migrations I have an error. The message is: "Your startup project 'project.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." Isn't the web layer supposed to have these references to Microsoft.EntityFrameworkCore.Design?

jasontaylordev commented 2 days ago

Thank you for reporting the issue; I've corrected it in the latest version.