在VS2010安装实体框架4.2 [英] Installing Entity Framework 4.2 in VS2010

查看:128
本文介绍了在VS2010安装实体框架4.2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

实体框架模板和菜单项在64位XP的Visual Studio 2010 Ultimate中生成错误。

Entity Framework templates and menu items generate errors in Visual Studio 2010 Ultimate on 64-bit XP.

Visual Studio中的反向工程师代码优先菜单项告诉我的版本4.0.0.0的System.Data.Entity.dll在GAC中找不到,项目模板也是如此。

The "Reverse Engineer Code First" menu item in Visual Studio tells me that version 4.0.0.0 of System.Data.Entity.dll cannot be found in the GAC, as do the item templates.

我已经运行了4.1 msi, 4.2的nuget。因此,我在以下7个地点拥有dll版本:

I have run the 4.1 msi, and the 4.2 nuget. As a result I have versions of the dll in the following 7 locations:


  • Windows\Microsoft.NET\Framework\v4。 0.30319\

  • Windows\Microsoft.NET\Framework64\v4.0.30319\

  • Windows\Microsoft.NET\assembly \GAC_MSIL\policy.4.0.system.data.entity\v4.0_0.0.0__b77a5c561934e089\

  • 程序文件\Reference Assemblies\Microsoft\Framework\v3 .5\

  • 程序文件(x86)\Reference Assemblies\Microsoft\Framework\v3.5\

  • 程序文件(x86)\Reference Assemblies\Microsoft.NetFramework\v4.0\

  • 程序文件(x86)\Reference Assemblies\Microsoft.NetFramework\v4.0\\ \\Profile\Client\

  • Windows\Microsoft.NET\Framework\v4.0.30319\
  • Windows\Microsoft.NET\Framework64\v4.0.30319\
  • Windows\Microsoft.NET\assembly\GAC_MSIL\policy.4.0.system.data.entity\v4.0_0.0.0__b77a5c561934e089\
  • Program Files\Reference Assemblies\Microsoft\Framework\v3.5\
  • Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.5\
  • Program Files (x86)\Reference Assemblies\Microsoft.NetFramework\v4.0\
  • Program Files (x86)\Reference Assemblies\Microsoft.NetFramework\v4.0\Profile\Client\

任何人都有任何建议?似乎对我来说微软推荐的新应用的数据访问技术应该不会那么难安装。

Anyone have any suggestions? Seems to me "Microsoft's recommended data access technology for new applications" should not be so difficult to install.

推荐答案

实体框架4.0 System.Data.Entity.dll)是.NET 4.0的一部分。没有单独下载。 EF 4.1 ad EF 4.2是EntityFramework.dll(不是System.Data.Entity.dll)的发行版。 EF 4.2仅作为NuGet分发,并未安装到GAC。

Entity framework 4.0 (System.Data.Entity.dll) is part of .NET 4.0. There is no separate download. EF 4.1 ad EF 4.2 are distribution of EntityFramework.dll (not System.Data.Entity.dll). EF 4.2 is only distributed as NuGet and is not installed to GAC.

逆向工程师代码第一不属于任何这些工具。它是EF Power Tools CTP 1的一部分,它最有可能依赖于EF 4.1(它在EF 4.2之前被释放,并且有可能不符合EF 4.2)。该工具本身与Entity框架的功能无关。

Reverse Engineer Code First is not part of any of these tools. It is part of EF Power Tools CTP 1 which is most probably dependent on EF 4.1 (it was released prior to EF 4.2 and there is possibility that it doesn't work with EF 4.2). This tool itself has no relation to functionality of Entity framework.

这篇关于在VS2010安装实体框架4.2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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