On Creating New Project in vs2013:failed to Initialize the Powershell Host

Source: Internet
Author: User

Today, when I'm creating a new project in VS2013 it gave me the following error message:

Install failed ... 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 F Irst.

After I had a try, I found out the solution:

1. Run VS2013 as Administrator

2. Open "Tools-to-NuGet package Manager---Package Management Console"

3. Execute command "Get-executionpolicy"

4. Execute command "Set-executionpolicy unrestricted", if you are on the bit OS, you should also Execute "Start-job {Set-ex Ecutionpolicy Unrestricted}-runas32 | Wait-job | Receive-job "

Restart VS, done!

On Creating New Project in vs2013:failed to Initialize the Powershell Host

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.