Entity framework 启用迁移:术语';启用迁移';未识别为cmdlet的名称

Entity framework 启用迁移:术语';启用迁移';未识别为cmdlet的名称,entity-framework,asp.net-web-api,Entity Framework,Asp.net Web Api,我正试图在我的一个解决方案上安装EntityFramefork,但软件包管理器控制台无法识别启用迁移 PM> Enable-Migrations Enable-Migrations : The term 'Enable-Migrations' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if

我正试图在我的一个解决方案上安装EntityFramefork,但
软件包管理器控制台
无法识别
启用迁移

PM> Enable-Migrations
Enable-Migrations : The term 'Enable-Migrations' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a pa
th was included, verify that the path is correct and try again.
At line:1 char:1
+ Enable-Migrations
+ ~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Enable-Migrations:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

我也从不同的线程执行了以下步骤,但没有成功: 1.重新安装的EF与-1版本 2.使用管理员权限重新启动VS


EF Core不再具有“启用迁移”命令。“默认情况下”启用迁移。使用添加迁移添加新迁移

关于包管理器命令的文档是

project.json
{
  "version": "1.0.0-*",
  "compilationOptions": {
    "emitEntryPoint": true
  },

  "dependencies": {
    "EntityFramework": "6.1.3",
    "Microsoft.AspNet.IISPlatformHandler": "1.0.0-rc1-final",
    "Microsoft.AspNet.Mvc": "6.0.0-rc1-final",
    "Microsoft.AspNet.Mvc.WebApiCompatShim": "6.0.0-rc1-final",
    "Microsoft.AspNet.Server.Kestrel": "1.0.0-rc1-final",
    "Microsoft.AspNet.StaticFiles": "1.0.0-rc1-final",
    "Microsoft.Extensions.Configuration.FileProviderExtensions": "1.0.0-rc1-final",
    "Microsoft.Extensions.Configuration.Json": "1.0.0-rc1-final",
    "Microsoft.Extensions.Logging": "1.0.0-rc1-final",
    "Microsoft.Extensions.Logging.Console": "1.0.0-rc1-final",
    "Microsoft.Extensions.Logging.Debug": "1.0.0-rc1-final",
    "Newtonsoft.Json": "10.0.2"
  },

  "commands": {
    "web": "Microsoft.AspNet.Server.Kestrel"
  },

  "frameworks": {
    "dnx451": {
      "dependencies": {
        "Application": "1.0.0-*",
        "Microsoft.AspNet.WebApi.Client": "5.2.3",
        "Models": "1.0.0-*",
        "Newtonsoft.JsonResult": "1.0.5778.10762"
      }
    }
  },

  "exclude": [
    "wwwroot",
    "node_modules"
  ],
  "publishExclude": [
    "**.user",
    "**.vspscc"
  ]
}