码迷,mamicode.com
首页 > 系统相关 > 详细

On Creating New Project in VS2013: Failed to Initialize the Powershell Host

时间:2015-10-31 15:38:44      阅读:255      评论:0      收藏:0      [点我收藏+]

标签:

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 first.

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

1. Run VS2013 as administrator

2. Open "Tools --> NuGet Package Manager --> Package Management Console"

3. Execute command "get-executionpolicy"

4. Execute command "set-executionpolicy unrestricted", if you‘re on 64 bit OS, you should also execute "start-job { set-executionpolicy unrestricted } -runas32 | wait-job | receive-job"

Restart VS, done!

On Creating New Project in VS2013: Failed to Initialize the Powershell Host

标签:

原文地址:http://www.cnblogs.com/laixiancai/p/4925594.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!