Nuget Error (PowerShell Error 2.0) Visual Studio 2015, Windows 10 (PwrShl 5.0)

I am using Visual Studio 2015 , on Windows 10 - I have a problem with the Nuget Console , it wants Powershell 2.0 . I have an instant whether PowerShell is installed, but its version is 5.0

I really don't understand why 5 is not compatible with 2? or why nuget cannot find 5 if 2 is not installed?

  • I tried installing 2, did not work

  • I tried the usual permissions to change the subscription to the nuget package, it didn’t work either

Has anyone received an offer? I am sure it is possible!

I need to download the latest Google UI API, and it seems that Nuget is the only way to do this, but if not, then a direct API download link will be just as useful! (I have almost everything starting with google API except lol search)

I also tried to install packages (Google Search API) manually through PowerShell 5.0, but I can’t find them, as far as I know, repositories should already be added, but maybe not?

Full error message:

Error: The Package Manager console requires a PowerShell 2.0 runtime that was not found on this machine. Please install PowerShell 2.0 from support.microsoft.com/kb/968929 and restart Visual Studio

+7
powershell visual-studio-2015 nuget
source share
1 answer

You need to install Powershell 2.0 . On Windows 10 you can do the following:

  • Go to this PC
  • Click Uninstall or change the program on the tab.
  • Click Turn Windows Features On or Off
  • Mark Poweshell 2.0 to install
  • Click OK

Or open powershell as admin and:

  • PS> Install-WindowsFeature PowerShell-V2
+22
source share

All Articles