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

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

    downgrade to 6.2 helped me.
    .NET Framework version 4.6.1
    Project in old format(non .NET Standard)
    Visual Studio should be open with Admin rights for initial migration.
    I guess EF with version above 6.2 require latest .NET Framework.

提交回复
热议问题