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

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

    "Your 'project name' does not refer to your startup project Microsoft.EntityFrameworkCore.Design. This package is required for the Entity Framework Core Tools to work. Make sure your startup project is correct, install the package and try again."

    If you get this error, try 'Build > Clean Solution' in your project and then try running your command again.

    This worked in my project. Or you may want to look at the documentation.

    I use .Net Core 3.1 version in my project.

提交回复
热议问题