Entity Framework 5 is not installing correctly?

I just installed VS 2012. I created a new project for Code First. Then I used Nuget to add EF5 to the project according to these instructions: http://msdn.microsoft.com/en-us/data/ee712906

Then I checked its installation: http://i1048.photobucket.com/albums/s361/usernames_r_stupid/Nuget_zpse7808c9b.png

Which shows that I have EF 5 installed. And really my App.config shows:

<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" /> 

But if I look at the properties of the assembly reference System.Data.Entity in my project, it will show version 4.0.0.0! http://i1048.photobucket.com/albums/s361/usernames_r_stupid/SystemDataProps_zps4a71be1b.png

What am I doing wrong here? It drives me crazy.

~ S

0
source share
2 answers

You should search for EntityFramework.dll . System.Data not an EntityFrakework assembly.

+1
source

Nuget creates a package folder with the above EntityFramework.dll. I manually referred to it, but in the end I said that it was already mentioned. ONce I started my project for the first time when it appeared in my links. Weird Was System.Data.Entity not the one EF 4 lived in?

0
source

All Articles