Package Manager Console 向VS2010安装 EntityFramework
2011-11-07 18:45
197 查看
尝试用VS2010--工具--Library Package Manager--Add Library Package Reference的online搜索 EntityFramework,
再找到的结果中,点选该Package的Install,
却提示错误:
"This package (or one of its dependencies) contains powershell scripts and needs to be installed from the package manager console."
根据提示改用Package Manager Console来安装,
打开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安装失败只需三步 :)
打开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(同上)
再找到的结果中,点选该Package的Install,
却提示错误:
"This package (or one of its dependencies) contains powershell scripts and needs to be installed from the package manager console."
根据提示改用Package Manager Console来安装,
打开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安装失败只需三步 :)
打开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(同上)
相关文章推荐
- 通过Package Manager Console 向VS2010安装 EntityFramework
- 通过Package Manager Console 向VS2010安装 EntityFramework
- 通过Package Manager Console 向VS2010安装 EFCodeFirst
- 用VS2010自带的Library Package Manager安装EFCodeFirst出现“无法加载一个或多个请求的类型”错误的解决方法
- 用VS2010自带的Library Package Manager安装EFCodeFirst出现“无法加载一个或多个请求的类型”错误的解决方法
- 用VS2010自带的Library Package Manager安装EFCodeFirst出现“无法加载一个或多个请求的类型”错误的解决方法
- PackageManagerService安装APK流程
- Android6.0 PackageManagerService 安装lib
- PackageManagerService源码分析之安装应用(四)
- PackageManagerService——掌管APP的安装、卸载和查询
- linux 查看文件安装目录命令 locate; whereis ; which ; RPM(Red Hat Package Manager)
- PackageManagerService中运用inotify去监控目录中的APK更新、安装和删除
- PackageManagerService安装流程
- EntityFramework学习笔记3-VS2010安装EF5.0
- VS2010未能正确安装RadLangSvc.Package...包等问题
- 安装APK的错误码(PackageManager.java)
- 安装APK的错误码(PackageManager.java)
- Android5.1--APK包的安装、卸载和优化(PackageManagerService)(二)
- Android应用管理四 -- APK包的安装、卸载和优化(PackageManagerService)
- EntityFramework学习笔记-VS2010安装EF