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

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

    run as administrator vs =>> Open the project

    -> On the Package manager Console
    
    Enable-migration
    add-migration migrationName
    update-database
    

提交回复
热议问题