繁体   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