When installing the EntityFramework package using NuGet, an error occurs.

.net entity-framework nuget

Question

I attempted to use NuGet to install EntityFramework 4.1 on Visual Studio 2010. This package (or one of its dependents) includes powershell scripts and has to be installed through the package manager console, according to the error I received after searching for the package and finding it using the "Tools > Library Package Manager > Add Library Package Reference" tool. What I did to repair it was as follows:

Using the Package Manager Console under Tools > Library Package Manager
Get-Package > entityframework > remote
(received some outcomes, among them EntityFramework 4.1.10311.0)
Install the EntityFramework package, PM.
Added 'EntityFramework' successfully...

The inquiry is:
1. Why wasn't the "Add Library Package Reference" option working properly? It seems that it should function as intended in this MS instructional http://www.asp.net/mvc/tutorials/getting-started-with-mvc3-part4-cs.
2. Is there an other approach?

Thank to everybody.

1
16
3/18/2011 1:49:24 PM

Accepted Answer

Which NuGet version do you use? Check out the VS Gallery's most recent updates. Go here for more information about upgrading: http://www.hanselman.com/blog/NuGetActionPlanUpgradeTo11SetupAutomaticUpdatesGetNuGetPackageExplorer.aspx

In version 1.1, install.ps1/uninstall packages are allowed. PS1 may now be installed from the dialog, when previously it couldn't.

13
3/20/2011 6:10:39 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