我试图在我的 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/