Skip to content

Instantly share code, notes, and snippets.

@ryupold
Last active September 21, 2015 08:21
Show Gist options
  • Save ryupold/d9569f6a2fc600a3a392 to your computer and use it in GitHub Desktop.
Save ryupold/d9569f6a2fc600a3a392 to your computer and use it in GitHub Desktop.
Errors & Solutions
{
"errors":["Failed to initialize the PowerShell host. If your PowerShell execution policy setting is set to AllSigned, open the Package Manager Console to initialize the host first."],
"solutions":[
{
"sources":["http://stackoverflow.com/questions/23353951/cant-install-nuget-package-because-of-failed-to-initialize-the-powershell-host"],
"description":"set execution policy to unrestricted",
"action":"PowerShell (as Admin): start-job { Set-ExecutionPolicy Unrestricted } -RunAs32 | wait-job | Receive-Job"
},
{
"sources":["http://stackoverflow.com/questions/23353951/cant-install-nuget-package-because-of-failed-to-initialize-the-powershell-host"],
"description":"Remember to restart Visual Studio after you've done the Set-ExecutionPolicy Unrestricted in PowerShell (x86). If that doesn't work, try Set-ExecutionPolicy RemoteSigned in PowerShell (x86) then restart Visual Studio.",
"action":"PowerShell (as Admin): Set-ExecutionPolicy RemoteSigned"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment