-
Notifications
You must be signed in to change notification settings - Fork 9.1k
Description
Windows Terminal version
1.22.11141.0
Windows build number
10.0.26100.4652
Other Software
SQL Server Management Studio 21.4.8
Visual Studio Professional 2022 (64-bit) version 17.14.8
Visual Studio Professional 2017 version 15.9.75
Steps to reproduce
Open the profile menu. It includes "Developer Command Prompt for VS 21" and "Developer PowerShell for VS 21". Select one of them.
Expected Behavior
These profiles should not be generated, because SSMS 21 does not install the required files.
Or, if the profiles can be made to work properly, then their names should refer to "SSMS 21" rather than "VS 21".
Actual Behavior
"Developer Command Prompt for VS 21" opens a tab that shows an error:
'C:\Program' is not recognized as an internal or external command, operable program or batch file.
The command line of this autogenerated profile is:
cmd.exe /k "C:\Program Files\Microsoft SQL Server Management Studio 21\Release\Common7\Tools\VsDevCmd.bat" -startdir=none -arch=x64 -host_arch=x64
In settings.json, it is listed as:
{
"guid": "{9e69c0bf-d826-525c-b927-8e9006824867}",
"hidden": false,
"name": "Developer Command Prompt for VS 21",
"source": "Windows.Terminal.VisualStudio"
},"Developer PowerShell for VS 21" opens a tab that shows an error:
Import-Module : The specified module 'C:\Program Files\Microsoft SQL Server Management Studio 21\Release\Common7\Tools\Microsoft.VisualStudio.DevShell.dll' was not loaded because no valid module file was found in any module directory.
At line:1 char:3
+ &{Import-Module "C:\Program Files\Microsoft SQL Server Management Stu ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ResourceUnavailable: (C:\Program File...io.DevShell.dll:String) [Import-Module], FileNotFoundException
+ FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand
Enter-VsDevShell : The term 'Enter-VsDevShell' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:137
+ ... \Tools\Microsoft.VisualStudio.DevShell.dll"; Enter-VsDevShell b218e7f ...
+ ~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Enter-VsDevShell:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
The command line of this autogenerated profile is:
powershell.exe -NoExit -Command "&{Import-Module """C:\Program Files\Microsoft SQL Server Management Studio 21\Release\Common7\Tools\Microsoft.VisualStudio.DevShell.dll"""; Enter-VsDevShell b218e7f4 -SkipAutomaticLocation -DevCmdArguments """-arch=x64 -host_arch=x64"""}"
In settings.json, it is listed as:
{
"guid": "{9b4e44dd-020d-5b00-a8ca-c5db6d969035}",
"hidden": false,
"name": "Developer PowerShell for VS 21",
"source": "Windows.Terminal.VisualStudio"
},Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Status