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