Closed NIBShura closed 5 years ago
This is not including "BuildTools"
Is that causing this issue?
It's by design. You need to specify -Product *
. This is called out in the help:
-Product <String[]>
One or more products to select. Wildcards are supported.
Required? false
Position? named
Default value Microsoft.VisualStudio.Product.Community, Microsoft.VisualStudio.Product.Professional, Microsoft.VisualStudio.Product.Enterprise
Accept pipeline input? False
Accept wildcard characters? false
The original requirements were to find Visual Studio. At the time, Build Tools lacked many of the things required to call it "Visual Studio". Changing that would be a breaking change. It's the same for vswhere.
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.
What am I missing?