Nuget 在 visual studio 2015 年崩溃
Nuget crash in visual studio 2015
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 仍然不起作用。
有人遇到同样的问题吗?
感谢您的任何预付款。
我遇到了同样的问题并找到了对我有用的解决方案:在所有范围内将执行策略设置为 "Undefined"(如果它们是由域策略设置的,则删除机器和用户范围的注册表项)然后重新启动VS 并打开程序包管理器控制台。
编辑:我删除的密钥路径:
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\PowerShell
键:执行策略
此命令行可用于自动执行该过程(运行 作为管理员),直到问题得到解决:
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\PowerShell /v ExecutionPolicy /f
Microsoft 已针对该问题发布了修补程序,以下是如何应用该修补程序的信息:
现在可以安装修补程序。请适当地从这些位置之一获取安装:
VS 2013 的 2.8.7:
https://github.com/NuGet/Home/releases/download/2.8.7/NuGet.Tools.vsix
VS 2015 的 3.1.1:
https://github.com/NuGet/Home/releases/download/3.1.1/NuGet.Tools.vsix
NuGet 将在下周将这些发布到 Visual Studio 图库。
有关详细信息,请访问此页面:
https://connect.microsoft.com/VisualStudio/feedback/details/1572078/nuget-crash-in-visual-studio-2015-enterprise
从 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.
使用工具 -> 扩展和更新...为 Visual Studio 2015 重新安装 NuGet 包管理器。
重启Visual Studio.
现在,当我打开程序包管理器控制台时,Powershell 会正确加载并且一切正常。希望这会有所帮助,而不必覆盖或设置执行策略。
我在 Tools\Nuget 包管理器\包管理器控制台下的 VS 2013 中收到以下错误....
问题:Windows PowerShell 已成功更新您的执行策略,但该设置被在更具体范围内定义的策略覆盖。由于覆盖,您的 shell 将保留其当前有效的无限制执行策略。键入 "Get-ExecutionPolicy -List" 以查看您的执行策略设置。有关更多信息,请参阅“Get-Help Set-ExecutionPolicy
我使用 Tools\Extension 和更新卸载了 Nuget 包管理器
卸载了 Nuget 包管理器。
从以下位置重新安装包管理器以解决问题。
https://marketplace.visualstudio.com/items?itemName=NuGetTeam.NuGetPackageManagerforVisualStudio2013
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 仍然不起作用。
有人遇到同样的问题吗? 感谢您的任何预付款。
我遇到了同样的问题并找到了对我有用的解决方案:在所有范围内将执行策略设置为 "Undefined"(如果它们是由域策略设置的,则删除机器和用户范围的注册表项)然后重新启动VS 并打开程序包管理器控制台。
编辑:我删除的密钥路径:
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\PowerShell
键:执行策略
此命令行可用于自动执行该过程(运行 作为管理员),直到问题得到解决:
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\PowerShell /v ExecutionPolicy /f
Microsoft 已针对该问题发布了修补程序,以下是如何应用该修补程序的信息:
现在可以安装修补程序。请适当地从这些位置之一获取安装:
VS 2013 的 2.8.7: https://github.com/NuGet/Home/releases/download/2.8.7/NuGet.Tools.vsix
VS 2015 的 3.1.1: https://github.com/NuGet/Home/releases/download/3.1.1/NuGet.Tools.vsix
NuGet 将在下周将这些发布到 Visual Studio 图库。
有关详细信息,请访问此页面: https://connect.microsoft.com/VisualStudio/feedback/details/1572078/nuget-crash-in-visual-studio-2015-enterprise
从 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.
使用工具 -> 扩展和更新...为 Visual Studio 2015 重新安装 NuGet 包管理器。
重启Visual Studio.
现在,当我打开程序包管理器控制台时,Powershell 会正确加载并且一切正常。希望这会有所帮助,而不必覆盖或设置执行策略。
我在 Tools\Nuget 包管理器\包管理器控制台下的 VS 2013 中收到以下错误....
问题:Windows PowerShell 已成功更新您的执行策略,但该设置被在更具体范围内定义的策略覆盖。由于覆盖,您的 shell 将保留其当前有效的无限制执行策略。键入 "Get-ExecutionPolicy -List" 以查看您的执行策略设置。有关更多信息,请参阅“Get-Help Set-ExecutionPolicy
我使用 Tools\Extension 和更新卸载了 Nuget 包管理器 卸载了 Nuget 包管理器。
从以下位置重新安装包管理器以解决问题。
https://marketplace.visualstudio.com/items?itemName=NuGetTeam.NuGetPackageManagerforVisualStudio2013