I solved this by adding EntityFrameworkCore before Add-Migration, i.e. the final statement was: EntityFrameworkCoreAdd-Migration