Skip to content

BuildTools 16.3 not getting selected #58

@BhaveshShura

Description

@BhaveshShura

I have BuildTools 16.3.8 installed on my machine Windows 10 1909 Build.
image

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions