View > Terminal
。令人困惑的是,Tools > Command Line >
Developer PowerShell
打开的是 Windows PowerShell。
Tools
打开开发者 PowerShell,则会打开此文件。混淆来自于集成“终端”仍然被命名为“开发者 PowerShell”。Get-ChildItem 'C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Tools\'
VsDevCmd.bat
批处理文件或 Launch-VsDevShell.ps1
PowerShell 脚本来了解它们的功能。简而言之,它们是由默认的 Windows 系统程序调用的脚本。例如,PowerShell 的位置在这里:Get-ChildItem 'C:\Windows\SysWOW64\WindowsPowerShell\v1.0\'