解決:Failed to initialize the PowerShell host.If your PowerShell execution policy setting is set...

問題描述

在Microsoft Visual Studio 2015中創建web項目時,遇到下面的錯誤,導致項目只能創建一半:

Failed to initialize the PowerShell host.If your PowerShell execution policy setting is set to AllSigned, open the Package Manager Console to initialize the host first.

解決方法

在VS中,按照下面步驟打開

Tools -> Extensions and Updates -> Updates

選擇更新"Nuget Package Manager for Visual Studio 2015",然後重啓VS即可修復。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章