简体   繁体   English

如何在 Visual Studio 中配置包管理器控制台使用的 powershell 版本?

[英]how to configure the powershell version used by the package manager console in visual studio?

I'm on Windows 11 Pro and I'm using Visual Studio Enterprise 2022 Version 17.2.5.我在 Windows 11 Pro 上,并且正在使用 Visual Studio Enterprise 2022 版本 17.2.5。 The package manager console is using Powershell version 5 and I have version 7 installed on my computer, is is possible to change the version used (for version 7) ?包管理器控制台使用的是 Powershell 版本 5,我的计算机上安装了版本 7,是否可以更改使用的版本(对于版本 7)?

Thanks by advance.提前谢谢。

I'm looking for the same thing.我正在寻找同样的东西。

There is an Options panel for the Terminal in VS2022, but I haven't been able to figure out what needs to be changed in there to support a different version of PowerShell. VS2022 中的终端有一个选项面板,但我无法弄清楚那里需要更改哪些内容以支持不同版本的 PowerShell。

As a stop-gap measure until you find the answer, there is a PowerShell Tools (trial) in the Visual Studio Marketplace (I'm not affiliated) that will add support for multiple versions of PowerShell into the Terminal Window along with other enhanced behaviors.在找到答案之前,作为权宜之计,Visual Studio Marketplace(我不附属)中有一个 PowerShell 工具(试用版),它将在终端窗口中添加对多个版本的 PowerShell 的支持以及其他增强的行为. At this point I don't know what the features difference is between the free/pro versions.在这一点上,我不知道免费/专业版之间的功能差异是什么。 Perhaps it will provide a hint for you on how to accomplish the conversion.也许它会为您提供有关如何完成转换的提示。

I'm looking forward to hearing your solution to the problem.我期待听到您对问题的解决方案。

暂无
暂无

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

相关问题 如何在 Visual Studio 外使用包管理器控制台 powershell - How to use Package Manager Console powershell outside visual studio 在扩展中以编程方式访问visual studio的powershell控制台(包管理器控制台) - Access the powershell console (package manager console) of visual studio programmatically in an extension 程序包管理器控制台上的PowerShell版本 - PowerShell Version on Package Manager Console Powershell包含在Visual Studio中的程序包管理器控制台中的项目中 - Powershell Include In Project From Package Manager Console In Visual Studio 如何确定在Powershell的Visual Studio程序包管理器控制台中选择的默认项目? - How do I determine the default project selected in the Visual Studio Package Manager Console in Powershell? 如何在Visual Studio中更改程序包管理器控制台的字体大小 - How to change Font Size of Package Manager Console in Visual Studio 如何在Visual Studio 2013中自动化Package Manager控制台 - How to automate Package Manager Console in Visual Studio 2013 Visual Studio 包管理器控制台的键盘快捷键? - Keyboard Shortcut for the Visual Studio Package Manager Console? 通过Visual Studio中的Package Console Manager将jQuery版本从2.1.1降级到1.9.1 - Downgrade jQuery version from 2.1.1 to 1.9.1 via Package Console Manager from Visual Studio 如何在 Visual Studio package 管理器中隐藏 package - How to hide a package in Visual Studio package manager
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM