Skip to content

Commit 6f81539

Browse files
Allow newer dotnet cli (#633)
* allow newer dotnet cli * show correct version you are using * use dotnetExe var
1 parent 8075515 commit 6f81539

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

PowerShellEditorServices.build.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ task SetupDotNet -Before Clean, Build, TestHost, TestServer, TestProtocol, TestP
3737
}
3838

3939
# Make sure the dotnet we found is the right version
40-
if ($dotnetExePath -and (& $dotnetExePath --version) -eq $requiredSdkVersion) {
40+
if ($dotnetExePath -and [version](& $dotnetExePath --version) -ge [version]$requiredSdkVersion) {
4141
$script:dotnetExe = $dotnetExePath
4242
}
4343
else {
@@ -78,7 +78,7 @@ task SetupDotNet -Before Clean, Build, TestHost, TestServer, TestProtocol, TestP
7878
$env:DOTNET_INSTALL_DIR = $dotnetExeDir
7979
}
8080

81-
Write-Host "`n### Using dotnet v$requiredSDKVersion at path $script:dotnetExe`n" -ForegroundColor Green
81+
Write-Host "`n### Using dotnet v$(& $script:dotnetExe --version) at path $script:dotnetExe`n" -ForegroundColor Green
8282
}
8383

8484
task Clean {

0 commit comments

Comments
 (0)