diff --git a/src/cascadia/TerminalSettingsModel/VsDevCmdGenerator.cpp b/src/cascadia/TerminalSettingsModel/VsDevCmdGenerator.cpp index 2b3f04e277d..f4e5dd0298a 100644 --- a/src/cascadia/TerminalSettingsModel/VsDevCmdGenerator.cpp +++ b/src/cascadia/TerminalSettingsModel/VsDevCmdGenerator.cpp @@ -42,6 +42,9 @@ std::wstring VsDevCmdGenerator::GetProfileCommandLine(const VsSetupConfiguration commandLine.reserve(256); commandLine.append(LR"(cmd.exe /k ")"); commandLine.append(GetDevCmdScriptPath(instance)); + // The "-startdir" parameter will prevent "vsdevcmd" from automatically + // setting the shell path so the path in the profile will be used instead. + commandLine.append(LR"(" -startdir=none)"); #if defined(_M_ARM64) commandLine.append(LR"(" -arch=arm64 -host_arch=x64)"); #elif defined(_M_AMD64)