NuGet Install-Package报错解决Package Manager Console error - PowerShell version 2.0 is not supported. Please upgrade PowerShell to 3.0 or greater and restart Visual Studio.


近日通过Nuget控制台获取包时报了如下错误

Package Manager Console error - PowerShell version 2.0 is not supported. Please upgrade PowerShell to 3.0 or greater and restart Visual Studio.

操作系统为WIN7,从内容看,需要将PowerShell升级到3.0及以上版本才可以,经过查找,发现需要通过升级Windows Management Framework版本来升级PowerShell,下面是微软官方的WindowsManagementFramework下载地址

https://www.microsoft.com/zh-CN/download/details.aspx?id=40855


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM