[Original] NuGet prompts "The PowerShell host cannot be initialized. If you set your PowerShell execution policy to AllSigned, open the package management console first to initialize the host". Solution: nugetpowershell

Source: Internet
Author: User

[Original] NuGet prompts "The PowerShell host cannot be initialized. If you set your PowerShell execution policy to AllSigned, open the package management console first to initialize the host". Solution: nugetpowershell

Symptom:

 

Methods such as setting AllSigned on the Internet are invalid .. Later, I thought it might be related to the command line version compatibility. Then I found a ForceV2 setting item in the command line configuration of the Registry, and changed it with a try mentality. It solved the problem!

Solution:Modify the ForceV2 value of the registry HKEY_CURRENT_USER \ Console to 1, restart the computer, and then initialize the VS-tool-NuGet Package Manager-package management Console.

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.