的EntityFramework包版本= QUOT; 6.1.3"和Web配置版本6.0.0.0? [英] EntityFramework package version="6.1.3" and Web config version 6.0.0.0?

查看:293
本文介绍了的EntityFramework包版本= QUOT; 6.1.3"和Web配置版本6.0.0.0?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个ASP.NET项目,其中包括EF 6.1.3

I created a ASP.NET project which included EF 6.1.3

其显示软件包版本=6.1.3,并在Web.config文件版本6.0.0.0

Its show package version="6.1.3" and in Web.config version 6.0.0.0

然而,在web.config中我仍然有这样的:

However in web.config i still have this:

section name="entityFramework" 
type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, 
EntityFramework, Version=6.0.0.0, Culture=neutral, 
PublicKeyToken=b77a5c561934e089" requirePermission="false"  

所有其他相关组件正确更新。

All other dependent assemblies are updated correctly.

其给出了服务器的错误

类型或命名空间名称'基础设施'中不存在的
  命名空间System.Data.Entity的

The type or namespace name 'Infrastructure' does not exist in the namespace 'System.Data.Entity

我想这是因为版本的问题。我应该有这个自己更新?

I thought this is due to version problem. Should I have updated this myself?

推荐答案

这是您完成的NuGet下载版本6.1.3具有6.0.0实际的产品版本,它们是同一个东西。
请参阅Microsoft下载中心

Version 6.1.3 that you download through NuGet has an actual product version of 6.0.0, they are the same thing. See Microsoft Download Centre

您与命名空间基础设施的错误是<一个href=\"http://stackoverflow.com/questions/13577157/the-namespace-name-infrastructure-does-not-exist-in-a-namespace-system-data-enti\">discussed这里,可能只需要System.Data.Entity.dll参考

Your error with namespace 'infrastructure' is discussed here and could just need a reference to System.Data.Entity.dll

这篇关于的EntityFramework包版本= QUOT; 6.1.3&QUOT;和Web配置版本6.0.0.0?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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