gpt4 book ai didi

visual-studio - Visual Studio 2015 中的 Nuget 崩溃

转载 作者:行者123 更新时间:2023-12-03 11:45:37 31 4
gpt4 key购买 nike

Visual Studio 2015 Enterprise 中的包管理器控制台在启动后出现错误:

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".



我已经尝试了很多事情,比如将 power shell 中的执行策略设置为 remoteSigned 但没有任何帮助,nuget 仍然不起作用。

有人有同样的问题吗?
感谢您的任何提前。

最佳答案

从 MSDN 网站完全干净安装 Visual Studio Professional 2015 后,我以管理员身份运行 VS2015,从 Tools -> NuGet Package Manager... -> 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 Unrestricted. Type "Get-ExecutionPolicy -List" to view your execution policy settings. For more information please see "Get-Help Set-ExecutionPolicy



按照上述步骤:
  • 使用工具 -> 扩展和更新...卸载 Visual Studio 2015 的 NuGet 包管理器。
  • 重新启动 Visual Studio。
  • 使用 Tools -> Extensions and Updates... 重新安装 NuGet Package Manager for Visual Studio 2015。
  • 重新启动 Visual Studio。

  • 现在,当我打开包管理器控制台时,Powershell 正确加载并且一切都很好。希望这会有所帮助,而无需覆盖或设置执行策略。

    关于visual-studio - Visual Studio 2015 中的 Nuget 崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31559268/

    31 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com