带有VS 2011的EF 4.3.1 [英] EF 4.3.1 with VS 2011
问题描述
我需要知道是否有可能在VS 2011中开始使用最新版本的EF(4.3.1),而不必按照所述此处。
I need to know if it is possible to start using the latest version of EF (4.3.1) with VS 2011 without having to install these CTP components as stated here.
我已经安装了这些组件,但是我删除了它们,从那时起,我无法向.net 4目标项目中添加新的edmx文件;它抱怨缺少对System.Data.Entity的引用。
I had these components installed but I removed them and since then I can't add a new edmx file to .net 4 targeted project; it complains about missing reference to System.Data.Entity.
我需要重新安装VS 2011吗?
Do I need to re install VS 2011?
推荐答案
在删除并重新安装Visual Studio之后,仍然无法看到该错误,因此我使用进程监视器记录了Visual Studio对 System所做的操作.Data.Entity
作为路径过滤器,原来是Visual Studio正在读取
After I removed and reinstalled Visual Studio, I still couldn't get red of the error, so I used process monitor to log what Visual Studio is doing with System.Data.Entity
as a path filter, turned out that Visual Studio was reading from
C:\ Windows \ Microsoft.NET \ GAC_MSIL policy.4.0.system.data.entity v4.0_0.0.0.0__b77a5c561934e089\policy.4.0.system.data.entity.config
C:\Windows\Microsoft.NET\assembly\GAC_MSIL\policy.4.0.system.data.entity v4.0_0.0.0.0__b77a5c561934e089\policy.4.0.system.data.entity.config
已绑定到
System.Data.Entity.dll v 4.2.0.0
System.Data.Entity.dll v 4.2.0.0
一旦我清除了文件VS,它就像是魅力。
once I cleared the file VS was worked like charm.
CTP卸载忽略了这一点。
The CTP uninstall left this out.
这篇关于带有VS 2011的EF 4.3.1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!