This commit is contained in:
parent
3c4744590c
commit
d68c1de9fc
1 changed files with 1 additions and 1 deletions
|
|
@ -9,7 +9,7 @@ $vsPath = & "C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.ex
|
|||
$directoryPath = Join-Path -Path $vsPath -ChildPath "VC\Tools\MSVC"
|
||||
|
||||
# Get all folders (assumes version format like 14.50.35717)
|
||||
$folders = Get-ChildItem -Path $directoryPath /Directory
|
||||
$folders = Get-ChildItem -Path $directoryPath -Directory
|
||||
|
||||
# Sort the folders by version and select the latest one
|
||||
$latestVersionFolder = $folders | Sort-Object { [Version]$_.Name } /Descending | Select-Object -First 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue