简体   繁体   中英

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).

How do I approach this?

Entity Framework has separate DLLs for each .Net version.

Remove EF entirely, then re-install it from NuGet and everything should work.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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