Package Manager Console Enable-Migrations CommandNotFoundException only in a specific VS project

前端 未结 26 2958
渐次进展
渐次进展 2020-11-28 06:55

I tried to run the command \'Enable-Migrations\' in a new project and I got the message:

PM> Enable-Migrations
The term \'Enable-Migrations\' is not recog         


        
相关标签:
26条回答
  • 2020-11-28 07:35

    Check if the project is open in the Solution Explorer window.

    This could be the cause of your problem.

    0 讨论(0)
  • 2020-11-28 07:36

    First "Install-Package EntityFramework -IncludePrerelease" and then Restarting Visual Studio as a Administrator worked for me together.

    0 讨论(0)
提交回复
热议问题