• Package Manager Console 向VS2010安装 EntityFramework


    尝试用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(同上)

  • 相关阅读:
    软件设计7个原则
    vue.js 样式绑定 font-size 问题
    实例理解scala 隐式转换(隐式值,隐式方法,隐式类)
    著名端口整理(常用服务的默认端总结)
    .NET Core Web API 实现大文件分片上传
    ngnix反向代理tomcat,ssl证书配置及自定义错误页面
    微信登录闪退
    gradle如何配置阿里云的中央仓库
    HashMap底层实现和原理
    关于Java中String类的hashCode方法
  • 原文地址:https://www.cnblogs.com/zhengrunqiang/p/2777244.html
Copyright © 2020-2023  润新知