Would like to install Entity Framework 5 with VS2012 but I'm lost

entity-framework visual-studio

Question

I installed Visual Studio 2012 and migrated a project from Visual Studio 2010 with Entity Framework 4.3 and .Net Framework 4.0

Now I would like to reference Entity Framework 5.0 and .Net 4.5

BUT when I go to the Manage Nuget Package window and search for EntityFramework. It says that Entity Framework 5 is already installed (there is no 'Install' button and I have a green check). This is strange because when I take a look in my explorer window for this project and get the properties of the reference 'EntityFramework' I see that this is the version 4.4.0.0. I agree that the path is told to be 5.0 but what? I don't understand anymore which version is installed.

enter image description here

Any help please?

Thanks :)

1
6
8/28/2012 3:58:21 PM

Accepted Answer

Remove EntityFramework package from your project, switch project to .NET 4.5 and add the package again. EF 4.4 and 5.0 represent "the same package" but the difference is the version of .NET they are targeting.

5
8/28/2012 6:17:24 PM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow