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
@@ -233,10 +233,9 @@ function InstallDotNet([string] $dotnetRoot,
233
233
&$installScript@installParameters
234
234
}
235
235
catch {
236
-
Write-PipelineTelemetryError-Category "InitializeToolset"-Message "Failed to install dotnet runtime '$runtime' from public location."
237
-
238
-
# Only the runtime can be installed from a custom [private] location.
239
-
if ($runtime-and ($runtimeSourceFeed-or$runtimeSourceFeedKey)) {
236
+
# If we fail, retry from a custom (possibly private) location.
237
+
if ($runtimeSourceFeed-or$runtimeSourceFeedKey) {
238
+
Write-Host"Failed to install dotnet runtime '$runtime' version '$version' from public location; trying specified alternate feed credentials"
240
239
if ($runtimeSourceFeed) { $installParameters.AzureFeed=$runtimeSourceFeed }
241
240
242
241
if ($runtimeSourceFeedKey) {
@@ -253,6 +252,7 @@ function InstallDotNet([string] $dotnetRoot,
253
252
ExitWithExitCode 1
254
253
}
255
254
} else {
255
+
Write-PipelineTelemetryError-Category "InitializeToolset"-Message "Failed to install dotnet runtime '$runtime' version '$version' from public location."
256
256
ExitWithExitCode 1
257
257
}
258
258
}
@@ -439,7 +439,7 @@ function LocateVisualStudio([object]$vsRequirements = $null){
0 commit comments