Package Manager Console 向VS2010安装 EntityFramework
嘗試用VS2010--工具--Library Package Manager--Add Library Package Reference的online搜索 EntityFramework,
再找到的結(jié)果中,點(diǎn)選該P(yáng)ackage的Install,
卻提示錯(cuò)誤:
"This package (or one of its dependencies) contains powershell scripts and needs to be installed from the package manager console."
?
根據(jù)提示改用Package Manager Console來(lái)安裝,
打開(kāi)VS2010--工具--Library Package Manager--Package Manager Console,
PM > get-package -remote -filter entityframework
?
Id???????????????????????? Version??????????????????? Description?????????????
--???????????????????????? -------??????????????????? -----------?????????????
EFCodeFirst??????????????? 1.0??????????????????????? Legacy package, Code F...
EntityFramework??????????? 4.1.10311.0??????????????? DbContext API and Code...
EntityFramework.Sample???? 4.1??????????????????????? This sample blog model...
EntityFramework.SqlServ... 4.1.8482.1???????????????? Allows SQL Server Comp...
EntityFrameworkProfiler??? 1.0.0.836????????????????? EntityFramework Profil...
?
PM > install-package -id EntityFramework -Version 4.1.10311.0
You are downloading EntityFramework from Microsoft, the license agreement to which is available athttp://go.microsoft.com/fwlink/?LinkID=211009. Check the package for additional dependencies, which may come with their own license agreement(s). Your use of the package and dependencies constitutes your acceptance of their license agreements. If you do not accept the license agreement(s), then delete the relevant components from your device.
Successfully installed 'EntityFramework 4.1.10311.0'
Successfully added 'EntityFramework 4.1.10311.0' to .......
VS2010安裝 EntityFramework
如果在Add Library Package Reference安裝失敗只需三步 :)
打開(kāi)VS2010--工具--Library Package Manager--Package Manager Console,
PM > get-package -remote -filter entityframework(在PM>輸入get-package -remote -filter entityframework)
PM > install-package -id EntityFramework -Version 4.1.10311.0(同上)
轉(zhuǎn)載于:https://www.cnblogs.com/zhengrunqiang/archive/2012/11/19/2777244.html
總結(jié)
以上是生活随笔為你收集整理的Package Manager Console 向VS2010安装 EntityFramework的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: USACO 3.1 Score Infl
- 下一篇: 乌鲁木齐昆仑爱德堡是毛坯房还是精装修?