-
Notifications
You must be signed in to change notification settings - Fork 45
Closed
Description
I have BuildTools 16.3.8 installed on my machine Windows 10 1909 Build.

And want to get the installation path for the MSBuild. Eventually I want to run following command to get the InstallationPath:
Get-VSSetupInstance | Select-VSSetupInstance -Version '[16.2,)' -Latest | Select-Object -ExpandProperty InstallationPath
And I see nothing in output. So I tried debugging this and found that the Select-VSSetupInstance does not return anything.
PS C:\Windows\System32> Get-VSSetupInstance
InstanceId : 50bb1fd5
DisplayName : Visual Studio Build Tools 2019
InstallationVersion : 16.3.29503.13
InstallationPath : C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools
InstallDate : 10/17/2019 9:31:32 AM
PS C:\Windows\System32> Get-VSSetupInstance | Select-VSSetupInstance
PS C:\Windows\System32>
What am I missing?
Reactions are currently unavailable