C# EntityFramework.HierarchyId存在问题
我试图使用C# EntityFramework.HierarchyId存在问题,c#,.net,entity-framework,hierarchyid,C#,.net,Entity Framework,Hierarchyid,我试图使用EntityFramework.HierarchyIdNuget包在EF 6中添加对HierarchyId数据类型的支持,问题是每次我添加包并尝试构建项目时,都会出现以下错误: 错误3在中定义了类型“System.Data.Entity.DbContext” 未引用的程序集。必须添加对程序集的引用 'EntityFramework,版本=6.0.0.0,区域性=中性, PublicKeyToken=b77a5c561934e089' 如果我删除软件包并重新安装EF 6.1,问题就消失
EntityFramework.HierarchyId
Nuget包在EF 6中添加对HierarchyId
数据类型的支持,问题是每次我添加包并尝试构建项目时,都会出现以下错误:
错误3在中定义了类型“System.Data.Entity.DbContext”
未引用的程序集。必须添加对程序集的引用
'EntityFramework,版本=6.0.0.0,区域性=中性,
PublicKeyToken=b77a5c561934e089'
如果我删除软件包并重新安装EF 6.1,问题就消失了 这是我的Web.config文件中的内容:
<configSections>
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=6847f3395fc61b47" requirePermission="false" />
</configSections>
如果我将版本更改为错误显示的版本,问题仍然存在:
<configSections>
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
</configSections>
我认为您的问题是
EF.hierachyid
和Microsoft.Aspnet.Identity.EntityFramework
之间的冲突,因为它添加了对'EntityFramework,Version=6.0.0.0,Culture=neutral,PublicKeyToken=b77a561934e089'的引用。
。你的问题可以在上找到。您可以修复它:
Microsoft.Aspnet.Identity.EntityFramework