简体   繁体   English

升级到.net4.5后的多个引用

[英]Multiple references after upgrading to .net4.5

I have just upgraded my ASP.NET MVC web application from .net4.0 to .net4.5 , and I am facing several issues where the compiler returns ambiguous references between my (installed as nuget package) entity framework 5.0 libraries and .net4.5 libraries (basically it doesn't know which one to use). 我刚刚将我的ASP.NET MVC Web应用程序从.net4.0.net4.5 ,并且.net4.0了几个问题,其中编译器在我的(作为nuget软件包安装) entity framework 5.0库和.net4.5之间返回了模糊的引用.net4.5库(基本上不知道使用哪个库)。

How do I approach this? 我该如何处理?

Entity Framework has separate DLLs for each .Net version. 实体框架为每个.Net版本都有单独的DLL。

Remove EF entirely, then re-install it from NuGet and everything should work. 完全删除EF,然后从NuGet重新安装它,一切正常。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM