UseDotNet fails to resolve older version dotnet 3.1.202 sdk package
See original GitHub issueRequired Information
Question, Bug, or Feature?
Type: Bug
Enter Task Name: UseDotNet
Environment
Azure Devops Server 2019.1.1
Private agent with version 2.153.1 on windows server 2016
Issue Description
UseDotNet fails to install dotnet 3.1.202 since last night yet it is available in https://github.com/dotnet/core/blob/master/release-notes/releases-index.json
Changing to 3.1.x fixes the issue, but 3.1.202 should imo work since it’s available in the feed.
Task logs
==============================================================================
Task : Use dotnet
Description : Acquires a specific version of the .NET Core SDK from the internet or the local cache and adds it to the PATH. Use this task to change the version of .NET Core used in subsequent tasks. Additionally provides proxy support.
Version : 2.0.7
Author : Microsoft Corporation
Help : https://aka.ms/AA4xgy0
==============================================================================
Tool to install: .NET Core sdk version 3.1.202.
No matching sdk version could be found for specified version: 3.1.202 Kindly note the preview versions are only considered in latest version searches if Include Preview Versions checkbox is checked.
Version 3.1.202 could not be found in its channel, will now search in adjacent channels.
Searching for version in channel 3.1
Searching for version in channel 3.0
##[error]sdk version matching: 3.1.202 could not be found
Troubleshooting
Checkout how to troubleshoot failures and collect debug logs: https://docs.microsoft.com/en-us/vsts/build-release/actions/troubleshooting
Error logs
[Insert error from the logs here for a quick overview] ##[error]sdk version matching: 3.1.202 could not be found
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Pipeline task "UseDotNet@2" fails to install .NET Core 3.1 ...
Installing .NET Core 3.1 SDK started failing consistently on macOS with this error: Download URL for .Net Core sdk version 3.1.102 could not...
Read more >The current .NET SDK does not support targeting .NET Core ...
100 SDK, and it works, but I don't want to do it, I have other projects on my machine that still need to...
Read more >UseDotNet@2 - Use dotnet v2 task - Microsoft Learn
Use this task to acquire a specific version of the .NET Core SDK from the internet or the local cache and add it...
Read more >cake-build/cake - Gitter
C:\Program Files\dotnet\sdk\3.1.202\NuGet.targets(124,5): error : Problem ... Same reason I prefer tool-manifest as it ensures CI uses same Cake version.
Read more >Chocolatey Software | .NET Core SDK 3.1.202
Version Downloads Last Updated Status
.NET Core SDK 3.1.425 11760 Tuesday, November 8, 2022 Approved
.NET Core SDK 3.1.424 11712 Wednesday, October 12, 2022 Approved
.NET...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Also, no need to manually downgrade the task 👍
@Mobrockers If the server itself is updated, the task will be the latest version out of the server’s package and the one you’ve installed.