CleanArchitecture icon indicating copy to clipboard operation
CleanArchitecture copied to clipboard

Unable to run migrations using the dotnet-ef tool

Open cbcrouse opened this issue 3 years ago • 0 comments

Describe the bug Unable to use dotnet-ef tool to create a migration because the presentation layer does not reference Microsoft.EntityFrameworkCore.Design.

To Reproduce Steps to reproduce the behavior:

  1. Follow instructions from Infrastructure/Readme.md to setup docker container and add the first migration
  2. See error

Expected behavior Able to create a migration using the dotnet-ef tool.

Screenshots If applicable, add screenshots to help explain your problem.

Running the migration with the API as startup image

Running the migration with the Console as startup image

Additional context Adding a reference to Microsoft.EntityFrameworkCore.Design to the API project fixes the problem.

cbcrouse avatar Oct 11 '22 18:10 cbcrouse