EF 4.4 - > 5“遇到多个版本”在MVC4 [英] EF 4.4 -> 5 "Multiple versions were encountered" in MVC4

查看:117
本文介绍了EF 4.4 - > 5“遇到多个版本”在MVC4的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个很多类图书馆项目的解决方案和使用它们的MVC 4网站。我试图将.NET Framework从4升级到4.5,并将那些使用EF 4.4型号的类库项目升级到EF 5.但是我正在获得遇到多个版本。



这是我到目前为止所做的:


  1. 将目标框架更改为4.5,解决方案中的所有项目

  2. 使用Nuget包管理器更新对所有项目的EF 5的引用

  3. 将我的Web.Config更改为MVC项目section name =entityFramework ... 5.0.0.0

  4. 检查是否生成了多个.edmx文件,但是没有。

  5. 清理构建+重新启动没有帮助

  6. 搜索整个解决方案4.4.0.0,但都是5.0.0.0

  7. ProviderManifestToken =2008,与之前一样,

这里可能有什么不对,我没有想法。

解决方案

  res:// * / 

在WebConfig不起作用在EF5中


I have a solution with lots of class library projects and a MVC 4 website using them. I tried to upgrade .NET Framework from 4 to 4.5 and upgrade those class library projects, that each are using EF 4.4 models, to EF 5. But I'm getting "Multiple versions were encountered".

Here's what I done so far:

  1. Changed target framework to 4.5 on all projects in solution
  2. Updated reference to EF 5 on all projects using Nuget package manager
  3. Changed my Web.Config in MVC project "section name="entityFramework... 5.0.0.0.."
  4. Checked if multiple .edmx files were generated, but there wasnt.
  5. "Cleaned build" + Restart didnt help
  6. Searched whole solution for 4.4.0.0 but all were 5.0.0.0
  7. ProviderManifestToken="2008" on all, same as before I started

What might be wrong here? I'm running out of ideas.

解决方案

res://*/ 

In WebConfig doesn't work in EF5

这篇关于EF 4.4 - > 5“遇到多个版本”在MVC4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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