powershell - 执行策略问题阻止访问 VS 中的包管理器控制台

标签 powershell visual-studio-2013 package-managers

我试图在我的 VS 2013 中访问包管理器控制台,但我得到以下信息:

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 Unrestricted. Type "Get-ExecutionPolicy -List" to view your execution policy settings. For more information please see "Get-Help Set-ExecutionPolicy".



我尝试了谷歌并做了几件事,然后重新启动了我的 VS,但什么都没有:同样的问题!

为什么会发生这种情况以及如何修复它以便我可以访问包管理器控制台?现在当我跑 Get-ExecutionPolicy -List我得到以下信息:
Scope             ExecutionPolicy
-----             --------
MachinePolicy     Unrestricted
UserPolicy        Undefined
Process           RemoteSigned
CurrentUser       RemoteSigned
LocalMachine      RemoteSigned

最佳答案

事实证明,我有一些针对 VS 的 NuGet 包管理器和 PowerShell 插件的未决更新。一旦我安装了这些并重新启动了我的电脑。一切都很好!

关于powershell - 执行策略问题阻止访问 VS 中的包管理器控制台,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31649723/

相关文章:

c++ - LNK2019 : unresolved external symbol, 在不存在的*.obj文件中搜索

components - 组件和 bower 有什么区别?

node.js - 由于 Yarn 和 npm 锁文件冲突,Heroku 构建失败

powershell - 如果不存在,如何将更新的文件复制到新文件夹并创建目录作为源?

powershell - 使用powershell查找位于每个用户的%AppData%目录中的特定文件类型

windows-phone-8 - VS2013 Windows Phone 8 模拟器无法连接到互联网

wpf - Visual Studio XAML 编辑器忽略属性选项卡中的按键

linux - 如何更改 Spack 存储 spack-stage 目录的位置?

powershell - 试图复制包含在文本文件中的一组文件

powershell - 如何检查所有返回值是否为真?