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