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

后端 未结 15 731
天涯浪人
天涯浪人 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:28

    None of the options worked for me. But the one I tried on this topic worked: EF Core 3 design time migrations broken by Microsoft.EntityFrameworkCore.Design DevelopmentDependency

    I just commented out the following after importing the package to the Data project:

    
    
    
      runtime; build; native; contentfiles; analyzers; buildtransitive
      
    
    

    Thank you so much Microsoft by breaking the existing projects every time when you release a new .NetCore update!

提交回复
热议问题