Library Package Manager > Add Library Package Reference\" tool and I got this error:" />
开发者

Error when installing EntityFramework package over NuGet

开发者 https://www.devze.com 2023-02-18 18:58 出处:网络
I tried to install EntityFramework 4.1 on VS 2010 through NuGet. I searched and found the package through \"Tools > Library Package Manager > Add Library Package Reference\" tool and I got this error:

I tried to install EntityFramework 4.1 on VS 2010 through NuGet. I searched and found the package through "Tools > Library Package Manager > Add Library Package Reference" tool and I got this error: "This package (or one of its dependencies) contains powershell scripts and needs to be installed from the package manager console.". This is what I did to fix it:

Tools > Library Package Manager > Package Manager Console

PM > get开发者_运维百科-package -remote -filter entityframework

(got some results including EntityFramework 4.1.10311.0)

PM > install-package -id EntityFramework

Successfully added 'EntityFramework ...

The question is:

1. What was wrong with "Add Library Package Reference" option? In this MS tutorial http://www.asp.net/mvc/tutorials/getting-started-with-mvc3-part4-cs it seems that it should work fine.

2. Is there a better solution?

Thanks to all.


What version of NuGet are you using? Update to the latest in the VS Gallery. More info on how to upgrade here: http://www.hanselman.com/blog/NuGetActionPlanUpgradeTo11SetupAutomaticUpdatesGetNuGetPackageExplorer.aspx

In 1.1 we allows packages with install.ps1/uninstall.ps1 to be installed from the dialog, this wasn't the case before.

0

精彩评论

暂无评论...
验证码 换一张
取 消