使用NuGet安装EntityFramework4.2

使用NuGet安装EntityFrameWork4.2

1、下载NuGet

有两种方式下载NuGet

第一种:在微软的档案库下载,下载地址为:http://visualstudiogallery.msdn.microsoft.com/27077b70-9dad-4c64-adcf-c7cf6bc9970c?SRC=VSIDE

弟二种:在vs2010的Tools中Extension Manager-》OnlineGallery 中搜索NuGet并下载安装

2、安装NuGet

在安装NuGet时,遇到了一个错误

Error: The Package Manager Console requires PowerShell 2.0 runtime, which is not detected on this machine.
Please install the PowerShell 2.0 from http://support.microsoft.com/kb/968929 and restart Visual Studio.

解决方案:卸载PowerShell 1.0

卸载后,能正确的安装成功

3、安装EntityFramework4.2

在 Package Manager Console 中 运行Install-Package EntityFramework

遇到错误

Install-Package : The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.
At line:1 char:16
+ Install-Package <<<<  EntityFramework
    + CategoryInfo          : NotSpecified: (:) [Install-Package], WebException
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
 解决方案:

修改package Source为:http://packages.nuget.org/v1/FeedService.svc/

 

转载于:https://www.cnblogs.com/50614090/archive/2012/01/11/2319596.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值