Powershell runtime

醉酒当歌 提交于 2019-12-20 01:49:30

问题


I'm running VS 2010 under Windows 8. After installing NuGet, and running Package manager console I get the following message:

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.

I know that PowerShell 3.0 is installed automatically along with Windows 8. Why would this error message pop up?


回答1:


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:

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.




回答2:


While PowerShell 3.0 on Windows 8 is installed by default, PowerShell 2.0 isn't. You can go into Programs and Features and select "Turn Windows Features On or Off" and from there you can select Windows PowerShell 2.0 for installation.



来源:https://stackoverflow.com/questions/14588885/powershell-runtime

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!