If the same problem, the project did not load all the libraries at the beginning. A fix has been added, and now everything is fine.
Problem: Opening the package manager console creates a message:
"Windows PowerShell successfully updated your execution policy, but the parameter is overridden by a policy defined in a more specific area. Because of the override, your shell will retain its current effective Unrestricted execution policy. Type" Get-ExecutionPolicy - List "to view the execution policy settings. Additional see the Get-Help Set-ExecutionPolicy section for details.
But the PowerShell prompt never appears. Similarly, an attempt to install a package creates the same message when trying to execute a script file from a package, and then:
Installation error. Rollback ...
Attempting to upgrade an existing package creates:
Failed to initialize PowerShell host. If the PowerShell execution policy setting is set to AllSigned, open the Package Manager console to initialize the host first.
Solution Hot fix explanations and links are available at https://github.com/NuGet/Home/issues/974#issuecomment-124774650 A fix is now available for installation, and we are sure that it will unlock you. Please take the installation from one of these places accordingly:
3.1.1 for VS 2015: https://github.com/NuGet/Home/releases/download/3.1.1/NuGet.Tools.vsix
We will publish them in the Visual Studio gallery next week.
source share