How can I install Entity Framework 4.2?

entity-framework nuget visual-studio-2010

Question

This used to be trivial via Nuget but now, I can only find 5.0 in Nuget. How can I specifically install version 4.2? We are trying to upgrade from 4.0 to 4.2 but aren't ready for a major upgrade to 5.0 at this time. This is one of those problems that comes up when they decide to not release MSIs (or at least .ZIPs with DLLs in them, which really is all I need here).

Thanks!

NOTE: This is NOT a duplicate of this question. The difference is that I can't find 4.2 in Nuget anymore. At the time of that question, it was easy/obvious to find.

1
0
5/23/2017 12:12:16 PM

Accepted Answer

As you pointed out, you can install an older package by adding -Version <version you want> to the the Install-Package command. If you take a look at the NuGet gallery; when you select a package, scroll to the bottom, you will find the Version History. Here you can select the version you want:NuGet version history

Clicking one of the versions will show you the package details along with the command to install the selected version.

1
1/21/2013 11:57:12 AM

Popular Answer

I think I figured it out. Check out this page. At the bottom, it lists the older versions of EntityFramewor and, when you click on it, it takes you to the details of that specific version, including the Nuget command to install it. For example, Entity Framework 4.2.0.0 can be installed via:

PM> Install-Package EntityFramework -Version 4.2.0.0

I've not actually done this yet, but I think this is exactly what I was looking for.



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