Need to use EF 4.1 when default is EF 4.3.1

1.4k Views Asked by At

I am running dev on VS2010 SP1, and when I run Install-Package EntityFramework, I get EF 4.3.1 installed by Nuget. Is there a way that I can restrict the version to EF 4.1? I would like to examine them differentially. Please help!

-Thanks, Ram

2

There are 2 best solutions below

0
On BEST ANSWER

By default Nuget will install the latest version of a given package.

But you can install any previous version of a nuget package (which are available on nuget.org) within the package manager console specifying the Version option like:

PM> Install-Package EntityFramework -Version 4.1.10715.0

You can check the available versions of EF here.

1
On

Also, to see available versions for a package, enter in the console: Get-Package -ListAvailable -Filter entityframework (the name of the package)

Sagy