You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#ga quality is available without specifying quality, so normalizing it to empty
240
240
{ $_-eq"ga" } { return"" }
241
-
default { throw"'$Quality' is not a supported value for --quality option, supported values are: daily, signed, validated, preview, ga. If you think this is a bug, report it at https://github.com/dotnet/install-scripts/issues." }
241
+
default { throw"'$Quality' is not a supported value for -Quality option, supported values are: daily, signed, validated, preview, ga. If you think this is a bug, report it at https://github.com/dotnet/install-scripts/issues." }
242
242
}
243
243
}
244
244
@@ -249,28 +249,23 @@ function Get-NormalizedChannel([string]$Channel) {
default { throw"'$Runtime' is not a supported value for -Runtime option, supported values are: dotnet, aspnetcore, windowsdesktop. If you think this is a bug, report it at https://github.com/dotnet/install-scripts/issues." }
263
268
}
264
-
elseif ($Runtime.ToLower() -eq"aspnetcore") {
265
-
$Product="aspnetcore-runtime"
266
-
}
267
-
elseif ($Runtime.ToLower() -eq"windowsdesktop") {
268
-
$Product="windowsdesktop-runtime"
269
-
}
270
-
elseif ([string]::IsNullOrEmpty($runtime)) {
271
-
$Product="dotnet-sdk"
272
-
}
273
-
return$Product
274
269
}
275
270
276
271
@@ -805,7 +800,7 @@ function Get-AkaMSDownloadLink([string]$Channel, [string]$Quality, [string]$Prod
805
800
Say-Invocation $MyInvocation
806
801
807
802
#quality is not supported for LTS or current channel
808
-
if (![string]::IsNullOrEmpty($Quality) -and ($Channel-eq"LTS"-or$Channel-eq"current") ) {
803
+
if (![string]::IsNullOrEmpty($Quality) -and (@("LTS","current") -contains$Channel)) {
809
804
$Quality=""
810
805
Say-Warning "Specifying quality for current or LTS channel is not supported, the quality will skipped."
0 commit comments