简体   繁体   English

ExecutionPolicy问题阻止访问VS中的Package Manager控制台

[英]ExecutionPolicy issue preventing access to Package Manager Console in VS

I am attempting to access the Package Manager Console in my VS 2013 but I am getting the following: 我试图访问我的VS 2013中的软件包管理器控制台,但我得到以下内容:

Windows PowerShell updated your execution policy successfully, but the setting is overridden by a policy defined at a more specific scope. Windows PowerShell已成功更新您的执行策略,但该设置被更具体范围内定义的策略覆盖。 Due to the override, your shell will retain its current effective execution policy of Unrestricted. 由于覆盖,您的shell将保留其当前有效的Unrestricted执行策略。 Type "Get-ExecutionPolicy -List" to view your execution policy settings. 键入“Get-ExecutionPolicy -List”以查看执行策略设置。 For more information please see "Get-Help Set-ExecutionPolicy". 有关详细信息,请参阅“Get-Help Set-ExecutionPolicy”。

I tried Google and did a couple of things then restarted my VS, but nothing: same issue! 我尝试了谷歌并做了几件事然后重新启动了我的VS,但没有:同样的问题!

Why is this happening and how can I fix it so that I can access the Package Manager Console? 为什么会发生这种情况?如何解决这个问题以便我可以访问软件包管理器控制台? Right now when I run Get-ExecutionPolicy -List I get the following: 现在,当我运行Get-ExecutionPolicy -List我得到以下内容:

Scope             ExecutionPolicy
-----             --------
MachinePolicy     Unrestricted
UserPolicy        Undefined
Process           RemoteSigned
CurrentUser       RemoteSigned
LocalMachine      RemoteSigned

It turned out I had some pending updates for NuGet Package Manager and PowerShell Addon for VS. 原来我有一些针对VS的NuGet Package Manager和PowerShell Addon的待定更新。 Once I installed those and restarted my PC. 一旦我安装了这些并重新启动了我的电脑。 All was good! 一切都很好!

I installed this hotfix (I use VS 2013 and Windows 8.1) and it fixed this exact problem for me (make sure to get the correct version for your IDE): 我安装了此修补程序(我使用VS 2013和Windows 8.1),它为我修复了这个确切的问题(确保为您的IDE获取正确的版本):

NuGet downloads NuGet下载

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM