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

posted @ 2018-05-20 21:30  Vulper  阅读(1872)  评论(0编辑  收藏  举报