• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
我思故我在
博客园    首页    新随笔    联系   管理    订阅  订阅

解决VS2015启动时Package manager console崩溃的问题 - Windows PowerShell updated your execution policy successfully, but the setting is overridden by a policy defined at a more specific scope

安装VS2015,启动以后,Package manager console崩溃,错误信息如下:

Windows PowerShell updated your execution policy successfully, but the setting is overridden by a policy defined at a more specific scope. Due to the override, your shell will retain its current effective execution policy of RemoteSigned. Type "Get-ExecutionPolicy -List" to view your execution policy settings. For more information please see "Get-Help Set-ExecutionPolicy".

Google以后,尝试了不少方式,在PowerShell中 setting execution policy , 修改注册表等,都没有解决。

后来发现这是Nuget的一个bug,并且已经修复了,需要重新安装Nuget, 步骤如下:

  1. 打开Vs2015 Tools -> Extensions and Updates...  卸载 NuGet Package Manager for Visual Studio 2015.

  2. 重启Visual Studio 2015.

  3. 进入 Tools -> Extensions and Updates... 重新安装 NuGet Package Manager for Visual Studio 2015.

  4. 重启Visual Studio 2015.

问题就解决了。 接下来就可以愉快的在Visual Studio 2015中使用 Package manager console 了

posted @ 2016-03-03 10:18  lcyhjx  阅读(1271)  评论(0)    收藏  举报
刷新页面返回顶部
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3