Type: Bug
Enter Task Name: UseDotNet@2/DotNetCoreInstaller@1
Trying to install .NET Core SDK v2.2.205. Fails, because the task inspects only the "newest" version of SDK for a given "release". Current release (v2.2.6) has the additional sdks element that contains newest sdks. This list is not inspected by the task code:
Release Metadata: https://dotnetcli.blob.core.windows.net/dotnet/release-metadata/2.2/releases.json
##[section]Starting: DotNetCoreInstaller
==============================================================================
Task : .NET Core sdk/runtime installer
Description : Acquire a specific version of the .NET Core SDK from the internet or local cache and add it to the PATH
Version : 1.0.4
Author : Microsoft Corporation
Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/tool/dotnet-core-tool-installer
==============================================================================
Tool to install: .NET Core sdk version 2.2.205.
No matching sdk version could be found for specified version: 2.2.205 Kindly note the preview versions are only considered in latest version searches if Include Preview Versions checkbox is checked.
Version 2.2.205 could not be found in its channel, will now search in adjacent channels.
Searching for version in channel 2.2
No matching sdk version could be found for specified version: 2.2.205 Kindly note the preview versions are only considered in latest version searches if Include Preview Versions checkbox is checked.
Searching for version in channel 2.1
No matching sdk version could be found for specified version: 2.2.205 Kindly note the preview versions are only considered in latest version searches if Include Preview Versions checkbox is checked.
Searching for version in channel 2.0
No matching sdk version could be found for specified version: 2.2.205 Kindly note the preview versions are only considered in latest version searches if Include Preview Versions checkbox is checked.
##[error]sdk version matching: 2.2.205 could not be found
##[section]Finishing: DotNetCoreInstaller
The addition of "sdks" property in release object is new and wasn't expected, hence the task looked in property "sdk".
We shall work on this, meanwhile can you try to use DotNetCoreInstallerV0 task for downloading the version, or you can use this scripts here (linux/windows) to get unblocked: https://github.com/dotnet/cli/tree/master/scripts/obtain
This is fixed and will start rolling out, this week. It shall reach all customers by end of next week