This commit is contained in:
parent
b6e600c249
commit
cce177542b
1 changed files with 1 additions and 1 deletions
|
|
@ -12,7 +12,7 @@ $directoryPath = Join-Path -Path $vsPath -ChildPath "VC\Tools\MSVC"
|
|||
$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
|
||||
$latestVersionFolder = $folders | Sort-Object { [Version]$_.Name } -Descending | Select-Object -First 1
|
||||
|
||||
# Store the latest version folder name
|
||||
$msvcVersion = $latestVersionFolder.Name
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue