question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

UseDotNet@2 cant find sdk version matching 3.x

See original GitHub issue

Note

Issues in this repo are for tracking bugs, feature requests and questions for the tasks in this repo

For a list:
https://github.com/Microsoft/azure-pipelines-tasks/tree/master/Tasks

If you have an issue or request for the Azure Pipelines service, use developer community instead:

https://developercommunity.visualstudio.com/spaces/21/index.html )

Required Information

Entering this information will route you directly to the right team and expedite traction.

Question, Bug, or Feature?
Type: Bug

Enter Task Name:UseDotNet@2

https://github.com/Microsoft/azure-pipelines-tasks/tree/master/Tasks

Environment

  • Server - Azure Pipelines

  • Agent - Private Windows 10

Issue Description

Unable to find a matching version of DotNetCore sdk for 3.x Including parameter includePreviewVersions finds the latest preview version of 3.1, but I want the latest current version. (currently 3.0.100)

##[section]Starting: UseDotNet
==============================================================================
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.5
Author       : Microsoft Corporation
Help         : https://aka.ms/AA4xgy0
==============================================================================
Tool to install: .NET Core sdk version 3.x.
##[error]Failed while getting version 3.x from channel 3.1 with error: {}
##[error]sdk version matching: 3.x could not be found
##[section]Finishing: UseDotNet

Error logs

##[error]Failed while getting version 3.x from channel 3.1 with error: {}
##[error]sdk version matching: 3.x could not be found

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:6
  • Comments:15 (5 by maintainers)

github_iconTop GitHub Comments

4reactions
mhdubosecommented, Oct 15, 2019

While changing it to 3.0.x works, 3.x should still work as well. This broke my pipelines as well, and the documentation still states that using Major.x will supply the latest Minor version.

2reactions
alastairuptoncommented, Oct 15, 2019

I have just changed mine to 3.0.x - I guess work has started on the 3.1 branch so, for stability, it is probably best to use 3.0.x.

Read more comments on GitHub >

github_iconTop Results From Across the Web

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 >
Build .NET Core 3.0 on Azure Pipelines - Stack Overflow
I specified the last preview version of .net core sdk 3.0, ... task: UseDotNet@2 displayName: 'Use dotnet sdk 3.x' inputs: version: 3.x ......
Read more >
Fixing: Unable to locate the .NET Core SDK. Check that it is ...
NET Core SDK. Check that it is installed and that the version specified in global.json (if any) matches the installed version.
Read more >
Use .NET core SDK task for "3.x" reports "version 3.1.410 not ...
NET Core sdk version 3.x. Found version 3.1.410 in channel 3.1 for user specified version spec: 3.x Version 3.1.410 was not found in...
Read more >
Using Azure Pipelines to publish the NuGet package from ...
task: UseDotNet@2 displayName: 'Install .NET Core SDK' inputs: packageType: 'sdk' version: '2.x'. Please DO NOT just copy & paste it. Try to type...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found