获取源码ASP.NET中5(vnext)工作 [英] Getting sqlite to work in ASP.NET 5 (vnext)

查看:148
本文介绍了获取源码ASP.NET中5(vnext)工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图让的EntityFramework 的SQLite :7.0.0-β1内ASP.NET工作5

I'm trying to get "EntityFramework.SQLite": "7.0.0-beta1" to work within ASP.NET 5.

我创建使用约曼我的项目,从安装包管理器EF sqlite的。

I've created my project using Yeoman and installed EF sqlite from the package manager.

将生成项目不错,但运行时,我得到:

无法加载文件或程序集Microsoft.Framework.Logging.ILogger,
  版本= 0.0.0.0,文化=中性公钥= null'or之一,其
  依赖关系。

Could not load file or assembly 'Microsoft.Framework.Logging.ILogger, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'or one of its dependencies.

我的project.json:

"dependencies": {
    "Microsoft.AspNet.Diagnostics": "1.0.0-beta5",
    "Microsoft.AspNet.Mvc": "6.0.0-beta5",
    "Microsoft.AspNet.Mvc.TagHelpers": "6.0.0-beta5",
    "Microsoft.AspNet.Server.IIS": "1.0.0-beta5",
    "Microsoft.AspNet.Server.Kestrel": "1.0.0-beta5",
    "Microsoft.AspNet.Server.WebListener": "1.0.0-beta5",
    "Microsoft.AspNet.StaticFiles": "1.0.0-beta5",
    "Microsoft.AspNet.Tooling.Razor": "1.0.0-beta5",
    "Microsoft.Framework.Configuration.Json": "1.0.0-beta5",
    "Microsoft.Framework.Logging": "1.0.0-beta5",
    "Microsoft.Framework.Logging.Console": "1.0.0-beta5",
    "Kestrel": "1.0.0-beta5",
    "EntityFramework.SQLite": "7.0.0-beta1"
},

我在这里怀疑一个版本的问题。

I'm suspecting a versioning issue here

事情我已经试过:

使用EF beta5的只有有其他包破试过。我也改变了Microsoft.Framework.Logging:1.0.0-beta5的最新,得到了到数据库成功创建,但随后爆发时,它得到services.AddMvc()点;

Tried using beta5 for EF only to have other packages breaking. I've also changed "Microsoft.Framework.Logging": "1.0.0-beta5" to the latest and got to the point where the db created successfully but then broke when it got to services.AddMvc();

我检查示例项目到Git的枢纽:
https://github.com/roboriaan/asp567

任何帮助将是非常美联社preciated。
谢谢

Any help would be really appreciated. Thanks

推荐答案

等待公测6,包括适当的SQLite支持和样品。 6测试版自带的明天! (7月27日)

Wait for beta 6, that includes proper SQLite support and samples. Beta 6 comes tomorrow! (July 27)

这篇关于获取源码ASP.NET中5(vnext)工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆