Powershell 运行时 [英] Powershell runtime
问题描述
我在 Windows 8 下运行 VS 2010.安装 NuGet 并运行包管理器控制台后,我收到以下消息:
I'm running VS 2010 under Windows 8. After installing NuGet, and running Package manager console I get the following message:
错误:包管理器控制台需要 PowerShell 2.0 运行时,这台机器上未检测到.请从 http://support.microsoft.com/kb/968929 安装 PowerShell 2.0 并重新启动 Visual Studio.
我知道 PowerShell 3.0 是随 Windows 8 自动安装的.为什么会弹出此错误消息?
I know that PowerShell 3.0 is installed automatically along with Windows 8. Why would this error message pop up?
推荐答案
虽然 Windows Powershell 2.0 Engine
功能在 Windows 8 中默认开启,但您需要开启 .Net 3.5 才能实际使用它,如前所述 此处:
While the Windows Powershell 2.0 Engine
feature is on by default in Windows 8, you need to turn on .Net 3.5 to actually use it, as mentioned here:
在 Windows 8 上,Windows PowerShell 2.0 引擎功能已打开默认.但是,要使用它,您需要打开选项它需要 Microsoft .NET Framework 3.5.
On Windows 8, the Windows PowerShell 2.0 Engine feature is turned on by default. However, to use it, you need to turn on the option for Microsoft .NET Framework 3.5, which it requires.
按照上述链接中的步骤操作.
Follow the steps in the above link to get it working.
这篇关于Powershell 运行时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!