How to install EntityFramework 5.0 (and other older versions) from NuGet?

thenewseattle picture thenewseattle · Nov 13, 2013 · Viewed 78.5k times · Source

I installed EF 5.0 into the .DAL, now I want to install EF 5.0 into .BLL from Nuget

But the default online Nuget package always comes up with 6.0, which gives error when used together with the 5.0 EF I use in DAL.

Where can I install the 5.0 version of EntityFramework into my Nuget packages??

Answer

devnull picture devnull · Nov 13, 2013

View -> Other windows -> Package Manager Console then run install-package entityframework -version 5.0.0.0.

Add -project <project.name> if you want to install it in a specific project.