<!-- add this in a <ItemGroup> tag in your .csproj --> <PackageReference Include="Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore" Version="3.1.0" />