让 sqlite 在 ASP.NET 5 (vnext) 中工作 [英] Getting sqlite to work in ASP.NET 5 (vnext)
问题描述
我正在尝试让 "EntityFramework.SQLite": "7.0.0-beta1" 在 ASP.NET 5 中工作.
I'm trying to get "EntityFramework.SQLite": "7.0.0-beta1" to work within ASP.NET 5.
我已经使用 Yeoman 创建了我的项目并从包管理器安装了 EF sqlite.
I've created my project using Yeoman and installed EF sqlite from the package manager.
该项目构建良好,但在运行时我得到:
无法加载文件或程序集Microsoft.Framework.Logging.ILogger,Version=0.0.0.0,Culture=neutral,PublicKeyToken=null'或其中之一依赖.
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
我尝试过的事情:
尝试将 beta5 用于 EF 只会破坏其他软件包.我还将 "Microsoft.Framework.Logging": "1.0.0-beta5" 更改为最新版本,并达到了 db 创建成功但在到达 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 hub:https://github.com/roboriaan/asp567
任何帮助将不胜感激.谢谢
Any help would be really appreciated. Thanks
推荐答案
等待 beta 6,其中包括适当的 SQLite 支持和示例.Beta 6 明天来!(7 月 27 日)
Wait for beta 6, that includes proper SQLite support and samples. Beta 6 comes tomorrow! (July 27)
这篇关于让 sqlite 在 ASP.NET 5 (vnext) 中工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!