ExecutionPolicy 问题阻止访问 VS 中的包管理器控制台
ExecutionPolicy issue preventing access to Package Manager Console in VS
我试图在我的 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".
我尝试了 Google 并做了一些事情然后重新启动了我的 VS,但没有:同样的问题!
为什么会发生这种情况?如何解决才能访问程序包管理器控制台?现在当我 运行 Get-ExecutionPolicy -List
我得到以下信息:
Scope ExecutionPolicy
----- --------
MachinePolicy Unrestricted
UserPolicy Undefined
Process RemoteSigned
CurrentUser RemoteSigned
LocalMachine RemoteSigned
原来我有一些 NuGet 包管理器和 VS 的 PowerShell 插件的待定更新。一旦我安装了这些并重新启动了我的电脑。一切都很好!
我安装了此修补程序(我使用 VS 2013 和 Windows 8.1),它为我解决了这个确切的问题(确保为您的 IDE 获取正确的版本):
我试图在我的 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".
我尝试了 Google 并做了一些事情然后重新启动了我的 VS,但没有:同样的问题!
为什么会发生这种情况?如何解决才能访问程序包管理器控制台?现在当我 运行 Get-ExecutionPolicy -List
我得到以下信息:
Scope ExecutionPolicy
----- --------
MachinePolicy Unrestricted
UserPolicy Undefined
Process RemoteSigned
CurrentUser RemoteSigned
LocalMachine RemoteSigned
原来我有一些 NuGet 包管理器和 VS 的 PowerShell 插件的待定更新。一旦我安装了这些并重新启动了我的电脑。一切都很好!
我安装了此修补程序(我使用 VS 2013 和 Windows 8.1),它为我解决了这个确切的问题(确保为您的 IDE 获取正确的版本):