We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4909995 commit b3d23cfCopy full SHA for b3d23cf
build.psm1
@@ -423,7 +423,6 @@ function Get-InstalledCLIVersion {
423
try {
424
# earlier versions of dotnet do not support --list-sdks, so we'll check the output
425
# and use dotnet --version as a fallback
426
-
427
$sdkList = & $script:dotnetExe --list-sdks 2>&1
428
$sdkList = "Unknown option"
429
if ( $sdkList -match "Unknown option" ) {
@@ -434,7 +433,8 @@ function Get-InstalledCLIVersion {
434
433
}
435
436
catch {
437
- $installedVersions = @()
+ Write-Verbose -Verbose "$_"
+ $installedVersions = & $script:dotnetExe --version
438
439
return (ConvertTo-PortableVersion $installedVersions)
440
0 commit comments