EF 4.4 - > 5“遇到多个版本”在MVC4 [英] EF 4.4 -> 5 "Multiple versions were encountered" in MVC4
本文介绍了EF 4.4 - > 5“遇到多个版本”在MVC4的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这是我到目前为止所做的:
- 将目标框架更改为4.5,解决方案中的所有项目
- 使用Nuget包管理器更新对所有项目的EF 5的引用
- 将我的Web.Config更改为MVC项目section name =entityFramework ... 5.0.0.0
- 检查是否生成了多个.edmx文件,但是没有。
- 清理构建+重新启动没有帮助
- 搜索整个解决方案4.4.0.0,但都是5.0.0.0
- 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:
- Changed target framework to 4.5 on all projects in solution
- Updated reference to EF 5 on all projects using Nuget package manager
- Changed my Web.Config in MVC project "section name="entityFramework... 5.0.0.0.."
- Checked if multiple .edmx files were generated, but there wasnt.
- "Cleaned build" + Restart didnt help
- Searched whole solution for 4.4.0.0 but all were 5.0.0.0
- 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屋!
查看全文