EntityFramework.Commands 7.0.0-rc1-final不支持框架.NETPlatform,Version = v5.4

时间:2016-03-08 22:53:25

标签: c# entity-framework-core

我有一个类库,我正在尝试用EF 7即EF核心构建。

据我所知,为了运行迁移等,我需要添加EF命令包,在我这样做后,我收到此错误:

依赖项EntityFramework.Commands 7.0.0-rc1-final不支持框架.NETPlatform,Version = v5.4

关于如何解决这个问题的任何想法?

这是我的project.json

{
  "version": "1.0.0-*",
  "description": "Class Library",
  "authors": [ "" ],
  "tags": [ "" ],
  "projectUrl": "",
  "licenseUrl": "",
  "frameworks": {
    "net451": { },
    "dotnet5.4": {
      "dependencies": {
        "Microsoft.CSharp": "4.0.1-beta-23516",
        "System.Collections": "4.0.11-beta-23516",
        "System.Linq": "4.0.1-beta-23516",
        "System.Runtime": "4.0.21-beta-23516",
        "System.Threading": "4.0.11-beta-23516"
      }
    }
  },
  "dependencies": {
    "EntityFramework.Commands": "7.0.0-rc1-final",
    "EntityFramework.Core": "7.0.0-rc1-final",
    "EntityFramework.MicrosoftSqlServer": "7.0.0-rc1-final"
  },
  "commands": {
    "ef": "EntityFramework.Commands"
  }

}

0 个答案:

没有答案