Your startup project doesn’t reference Microsoft.EntityFrameworkCore.Design

I found the solution here.

In short, edit your csproj file, and add to your PropertyGroup section the following entry:

<GenerateRuntimeConfigurationFiles>True</GenerateRuntimeConfigurationFiles>

Leave a Comment