EF7: The term 'add-migration' is not recognized as the name of a cmdlet

后端 未结 6 1342
傲寒
傲寒 2021-01-01 22:02

I have framework version set to: dnx46 in project.json. Also have the following packages:

  \"dependencies\": {
    \"EntityFramework.Commands\": \"7.0.0-rc1         


        
6条回答
  •  渐次进展
    2021-01-01 22:23

    The only way I managed to get EntityFrameworkCore.Tools (which includes Add-Migration) working with the latest EF Core & VS 2015 was to manually call the init script from the Package Manager Console like so:

    PM> %UserProfile%\.nuget\packages\Microsoft.EntityFrameworkCore.Tools\1.0.0-preview1-final\tools\init.ps1
    

提交回复
热议问题