Skip to content

Commit

Permalink
Sort visual studio installations to ensure selection of latest stable
Browse files Browse the repository at this point in the history
  • Loading branch information
matkoch committed Jun 17, 2019
1 parent 400d156 commit 2933de2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion content/settings.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ $SourceBasePath = "$PSScriptRoot\src\dotnet"

$VsWhereOutput = [xml] (& "$PSScriptRoot\tools\vswhere.exe" -format xml)
$VisualStudio = $VsWhereOutput.instances.instance |
Where { $_.channelId -match "Release" } |
Where-Object { $_.channelId -match "Release" } |
Sort-Object -Property installationVersion |
Select-Object -Last 1

$VisualStudioBaseDirectory = $VisualStudio.installationPath
Expand Down

0 comments on commit 2933de2

Please sign in to comment.