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

前端 未结 26 2967
渐次进展
渐次进展 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:26

    In .NET Core, I was able to reach the same resolution as described in the accepted answer, by entering the following in package manager console:

    Install-Package EntityFramework.Core -Pre
    

提交回复
热议问题