簡體   English   中英

Powershell 運行時

[英]Powershell runtime

我在 Windows 8 下運行 VS 2010。安裝 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 3.0 是隨 Windows 8 自動安裝的。為什么會彈出此錯誤消息?

雖然Windows Powershell 2.0 Engine的特點是在默認情況下在Windows 8中,你需要打開的.Net 3.5實際使用它,提到這里

在 Windows 8 上,Windows PowerShell 2.0 引擎功能默認處於打開狀態。 但是,要使用它,您需要打開它需要的 Microsoft .NET Framework 3.5 選項。

按照上述鏈接中的步驟使其工作。

雖然 Windows 8 上的 PowerShell 3.0 默認安裝,但 PowerShell 2.0 不是。 您可以進入“程序和功能”並選擇“打開或關閉 Windows 功能”,然后您可以從那里選擇 Windows PowerShell 2.0 進行安裝。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM