使用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/
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本
· C#/.NET/.NET Core优秀项目和框架2025年2月简报
· Manus爆火,是硬核还是营销?
· 终于写完轮子一部分:tcp代理 了,记录一下
· 【杭电多校比赛记录】2025“钉耙编程”中国大学生算法设计春季联赛(1)
2015-03-19 C# 操作 Word 修改word的高级属性中的自定义属性2
2015-03-19 CLR C++ Set Word CustomDocumentProperties
2015-03-19 C# 操作 Word 修改word的高级属性中的自定义属性