【问题标题】:Powershell runtimePowershell 运行时
【发布时间】:2013-01-29 17:40:03
【问题描述】:

我在 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自动安装的,为什么会弹出这个错误信息?

【问题讨论】:

    标签: visual-studio-2010 powershell windows-8 nuget


    【解决方案1】:

    虽然Windows Powershell 2.0 Engine 功能在 Windows 8 中默认开启,但您需要打开 .Net 3.5 才能实际使用它,如 here 所述:

    在 Windows 8 上,Windows PowerShell 2.0 引擎功能已打开 默认情况下。但是,要使用它,您需要打开选项 Microsoft .NET Framework 3.5,它需要它。

    按照上面链接中的步骤操作即可。

    【讨论】:

      【解决方案2】:

      虽然默认安装 Windows 8 上的 PowerShell 3.0,但未安装 PowerShell 2.0。您可以进入程序和功能并选择“打开或关闭 Windows 功能”,然后您可以从那里选择 Windows PowerShell 2.0 进行安装。

      【讨论】:

      • 检查我的答案。它实际上已启用。
      • 啊,所以PowerShell默认只安装了一部分。这很有意义,嗯。 ;-)
      猜你喜欢
      • 1970-01-01
      • 2011-01-06
      • 2020-04-22
      • 2019-07-29
      • 1970-01-01
      • 2015-10-11
      • 2010-11-03
      • 2020-08-14
      相关资源
      最近更新 更多