Developer Command Prompt for VS 2022 always starts in the wrong place #20874

Open
opened 2026-01-31 07:26:33 +00:00 by claunia · 0 comments
Owner

Originally created by @mikedice on GitHub (Nov 23, 2023).

Windows Terminal version

1.18.2822.0

Windows build number

10.0.22631.2715

Other Software

VS2022 Enterprise with latest updates installed. .Net Core profile

Steps to reproduce

  • Open Terminal
  • in Terminal open new Developer Command Prompt for VS 2022

Expected Behavior

I should be able to say where my command prompt starting directory is at. I would specify the root of my repos where all of my code is at

Actual Behavior

The terminal starts in 'C:\Program Files\Microsoft Visual Studio\2022\Enterprise'. This is totally useless because none of my code is in that directory so I always have to CD to the directory where my repos are at. If you look at the script C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\vsdevcmd\core\vsdevcmd_end.bat you see why this is happening. Terminal passes -startdir=none to the command and that causes all the logic in the vsdevcmd_end.bat file that lets users start in whatever directory they want to be skipped.

Originally created by @mikedice on GitHub (Nov 23, 2023). ### Windows Terminal version 1.18.2822.0 ### Windows build number 10.0.22631.2715 ### Other Software VS2022 Enterprise with latest updates installed. .Net Core profile ### Steps to reproduce - Open Terminal - in Terminal open new Developer Command Prompt for VS 2022 ### Expected Behavior I should be able to say where my command prompt starting directory is at. I would specify the root of my repos where all of my code is at ### Actual Behavior The terminal starts in 'C:\Program Files\Microsoft Visual Studio\2022\Enterprise'. This is totally useless because none of my code is in that directory so I always have to CD to the directory where my repos are at. If you look at the script C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\vsdevcmd\core\vsdevcmd_end.bat you see why this is happening. Terminal passes -startdir=none to the command and that causes all the logic in the vsdevcmd_end.bat file that lets users start in whatever directory they want to be skipped.
claunia added the Needs-TriageIssue-Bug labels 2026-01-31 07:26:33 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#20874