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

后端 未结 15 736
天涯浪人
天涯浪人 2021-02-01 12:51

I have 2 projects in my solution, I have a project with Entity Framework Core installed:

And in the other ASP.NET Web API project I have these packages:

15条回答
  •  盖世英雄少女心
    2021-02-01 13:30

    This happen for me when

    Both Entity Framework Core and Entity Framework 6 are installed. The Entity Framework Core tools are running. Use 'EntityFramework6\Add-Migration' for Entity Framework 6.

    solution was EntityFrameworkCore\Add-Migration

提交回复
热议问题