使用 Developer Powershell 时未找到 team_explorer.bat

使用 Developer Powershell 时未找到 team_explorer.bat

当我启动 VS 2022 的开发人员 PowerShell 时,出现此错误。

**********************************************************************
** Visual Studio 2022 Developer PowerShell v17.2.4
** Copyright (c) 2022 Microsoft Corporation
**********************************************************************
Enter-VsDevShell : [ERROR:team_explorer.bat] Directory not found : "C:\Program Files (x86)\Microsoft Visual
Studio\2022\BuildTools\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer"
At line:1 char:133
+ ... Shell.dll"; Enter-VsDevShell 32781b11 -SkipAutomaticLocation -DevCmdA ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Enter-VsDevShell], Exception
    + FullyQualifiedErrorId : DevCmdError,Microsoft.VisualStudio.DevShell.Commands.EnterVsDevShellCommand

然后 CLI 会恢复,但我该如何修复此错误?每次启动 shell 时都会出现此错误

答案1

这似乎是某种错误,但我可以确认创建提到的目录可以解决该问题。

相关内容