提交 56d049d4 编写于 作者: J Jared Parsons

Clean up vswhere logic

上级 c5c9e3ee
......@@ -371,7 +371,7 @@ function Get-VisualStudioDirAndId() {
# recorded in that form.
$name = $obj.installationName
if ($name -match "VisualStudio(Preview)?/([\d.]+)(\+|-).*") {
$minVersion = New-Object System.Version "15.1.0"
$minVersion = New-Object System.Version "15.3.0"
$version = New-Object System.Version $matches[2]
if ($version -ge $minVersion) {
Write-Output $obj.installationPath
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册