实体框架2.0不支持DNX 5.0版

时间:2017-08-14 05:43:43

标签: entity-framework-6 asp.net-core-mvc

我在尝试将EntityFramework添加到我的WebAPI项目时遇到以下错误 实体框架2.0不支持DNX 5.0版

      "dependencies": {
    "Microsoft.ApplicationInsights.AspNet": "1.0.0-rc1",
    "Microsoft.AspNet.IISPlatformHandler": "1.0.0-rc1-final",
    "Microsoft.AspNet.Mvc": "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"
  },

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

  "frameworks": {
    "dnx451": { },
    "dnxcore50": { }
  },

enter image description here 知道为什么会这样吗?

1 个答案:

答案 0 :(得分:1)

考虑到您仍然使用.json配置,您至少可以升级到2017 Community Edition。 DNX已经死了很长一段时间,更不用说你的1.0参考了....由于年龄和测试版,不再支持列出任何内容