Skip to content

[BUG]: UseDotNet@2 does not download .NET 8 SDK #19292

Open
@StormPooper

Description

@StormPooper

New issue checklist

Task name

UseDotNet@2

Task version

2.230.2

Issue Description

I'm attempting to use UseDotNet@2 with ubuntu-latest to install .NET 8 now it has been released, but I get the following error:

##[error]sdk version matching: 8.0.0 could not be found

I've checked releases.json and it has a non-preview build for linux, so it should be finding it, but it fails. I've tried this with the global.json below and by specifying version: 8.0.0 instead, both with and without the includePreviewVersions flag.

Task in azure-pipelines.yml:

- task: UseDotNet@2
    inputs:
      packageType: sdk
      useGlobalJson: true

global.json:

{
  "sdk": {
    "version": "8.0.0",
    "rollForward": "latestFeature"
  }
}

Environment type (Please select at least one enviroment where you face this issue)

  • Self-Hosted
  • Microsoft Hosted
  • VMSS Pool
  • Container

Azure DevOps Server type

dev.azure.com (formerly visualstudio.com)

Azure DevOps Server Version (if applicable)

No response

Operation system

ubuntu-latest

Relevant log output

No matching sdk version could be found for specified version: 8.0.0 Kindly note the preview versions are only considered in latest version searches if Include Preview Versions checkbox is checked.
Version 8.0.0 could not be found in its channel, will now search in adjacent channels.
Searching for version in channel 8.0
##[error]sdk version matching: 8.0.0 could not be found

Full task logs with system.debug enabled

2023-11-17T11:30:14.4316116Z ##[debug]Evaluating condition for step: 'NuGet: SDK'
2023-11-17T11:30:14.4320222Z ##[debug]Evaluating: and(succeeded(), eq(variables['globalJsonExists'], True))
2023-11-17T11:30:14.4320690Z ##[debug]Evaluating and:
2023-11-17T11:30:14.4327246Z ##[debug]..Evaluating succeeded:
2023-11-17T11:30:14.4327771Z ##[debug]..=> True
2023-11-17T11:30:14.4327967Z ##[debug]..Evaluating eq:
2023-11-17T11:30:14.4329207Z ##[debug]....Evaluating indexer:
2023-11-17T11:30:14.4340380Z ##[debug]......Evaluating variables:
2023-11-17T11:30:14.4342867Z ##[debug]......=> Object
2023-11-17T11:30:14.4343511Z ##[debug]......Evaluating String:
2023-11-17T11:30:14.4344021Z ##[debug]......=> 'globalJsonExists'
2023-11-17T11:30:14.4347622Z ##[debug]....=> 'true'
2023-11-17T11:30:14.4348063Z ##[debug]....Evaluating Boolean:
2023-11-17T11:30:14.4348308Z ##[debug]....=> True
2023-11-17T11:30:14.4351188Z ##[debug]....=> 'True'
2023-11-17T11:30:14.4351390Z ##[debug]..=> True
2023-11-17T11:30:14.4351846Z ##[debug]=> True
2023-11-17T11:30:14.4353940Z ##[debug]Expanded: and(True, eq('true', True))
2023-11-17T11:30:14.4354287Z ##[debug]Result: True
2023-11-17T11:30:14.4354566Z ##[section]Starting: NuGet: SDK
2023-11-17T11:30:14.4359489Z ==============================================================================
2023-11-17T11:30:14.4359744Z Task         : Use .NET Core
2023-11-17T11:30:14.4359860Z 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.
2023-11-17T11:30:14.4360922Z Version      : 2.230.2
2023-11-17T11:30:14.4361012Z Author       : Microsoft Corporation
2023-11-17T11:30:14.4361160Z Help         : https://aka.ms/AA4xgy0
2023-11-17T11:30:14.4361315Z ==============================================================================
2023-11-17T11:30:14.4881734Z ##[debug]Using node path: /home/vsts/agents/3.230.0/externals/node16/bin/node
2023-11-17T11:30:14.5755386Z ##[debug]agent.TempDirectory=/home/vsts/work/_temp
2023-11-17T11:30:14.5764314Z ##[debug]loading inputs and endpoints
2023-11-17T11:30:14.5768450Z ##[debug]loading INPUT_PACKAGETYPE
2023-11-17T11:30:14.5778024Z ##[debug]loading INPUT_USEGLOBALJSON
2023-11-17T11:30:14.5779597Z ##[debug]loading INPUT_WORKINGDIRECTORY
2023-11-17T11:30:14.5781029Z ##[debug]loading INPUT_INCLUDEPREVIEWVERSIONS
2023-11-17T11:30:14.5782108Z ##[debug]loading INPUT_INSTALLATIONPATH
2023-11-17T11:30:14.5783231Z ##[debug]loading INPUT_PERFORMMULTILEVELLOOKUP
2023-11-17T11:30:14.5784361Z ##[debug]loading ENDPOINT_AUTH_SYSTEMVSSCONNECTION
2023-11-17T11:30:14.5789288Z ##[debug]loading ENDPOINT_AUTH_SCHEME_SYSTEMVSSCONNECTION
2023-11-17T11:30:14.5790262Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_SYSTEMVSSCONNECTION_ACCESSTOKEN
2023-11-17T11:30:14.5792900Z ##[debug]loading SECRET_SYSTEM_ACCESSTOKEN
2023-11-17T11:30:14.5795217Z ##[debug]loaded 10
2023-11-17T11:30:14.5799177Z ##[debug]Agent.ProxyUrl=undefined
2023-11-17T11:30:14.5800845Z ##[debug]Agent.CAInfo=undefined
2023-11-17T11:30:14.5801262Z ##[debug]Agent.ClientCert=undefined
2023-11-17T11:30:14.5801970Z ##[debug]Agent.SkipCertValidation=undefined
2023-11-17T11:30:14.6143522Z ##[debug]Agent.ProxyUrl=undefined
2023-11-17T11:30:14.6148612Z ##[debug]Agent.CAInfo=undefined
2023-11-17T11:30:14.6149533Z ##[debug]Agent.ClientCert=undefined
2023-11-17T11:30:14.6150676Z ##[debug]check path : /home/vsts/work/_tasks/UseDotNet_b0ce7256-7898-45d3-9cb5-176b752bfea6/2.230.2/node_modules/azure-pipelines-tool-lib/lib.json
2023-11-17T11:30:14.6152384Z ##[debug]adding resource file: /home/vsts/work/_tasks/UseDotNet_b0ce7256-7898-45d3-9cb5-176b752bfea6/2.230.2/node_modules/azure-pipelines-tool-lib/lib.json
2023-11-17T11:30:14.6153593Z ##[debug]system.culture=en-US
2023-11-17T11:30:14.6239929Z ##[debug]Setting resource path to /home/vsts/work/_tasks/UseDotNet_b0ce7256-7898-45d3-9cb5-176b752bfea6/2.230.2/task.json
2023-11-17T11:30:14.6241618Z ##[debug]check path : /home/vsts/work/_tasks/UseDotNet_b0ce7256-7898-45d3-9cb5-176b752bfea6/2.230.2/task.json
2023-11-17T11:30:14.6243268Z ##[debug]adding resource file: /home/vsts/work/_tasks/UseDotNet_b0ce7256-7898-45d3-9cb5-176b752bfea6/2.230.2/task.json
2023-11-17T11:30:14.6244284Z ##[debug]system.culture=en-US
2023-11-17T11:30:14.6262180Z ##[debug]check path : /home/vsts/work/_tasks/UseDotNet_b0ce7256-7898-45d3-9cb5-176b752bfea6/2.230.2/node_modules/azure-pipelines-tasks-packaging-common/module.json
2023-11-17T11:30:14.6264017Z ##[debug]adding resource file: /home/vsts/work/_tasks/UseDotNet_b0ce7256-7898-45d3-9cb5-176b752bfea6/2.230.2/node_modules/azure-pipelines-tasks-packaging-common/module.json
2023-11-17T11:30:14.6266570Z ##[debug]system.culture=en-US
2023-11-17T11:30:14.6274102Z ##[debug]useGlobalJson=true
2023-11-17T11:30:14.6276562Z ##[debug]packageType=sdk
2023-11-17T11:30:14.6276935Z ##[debug]version=undefined
2023-11-17T11:30:14.6277400Z ##[debug]vsVersion=undefined
2023-11-17T11:30:14.6278126Z ##[debug]nugetVersion=undefined
2023-11-17T11:30:14.6279818Z ##[debug]installationPath=/opt/hostedtoolcache/dotnet
2023-11-17T11:30:14.6280559Z ##[debug]performMultiLevelLookup=false
2023-11-17T11:30:14.6281141Z ##[debug]includePreviewVersions=false
2023-11-17T11:30:14.6283309Z ##[debug]workingDirectory=/home/vsts/work/1/s
2023-11-17T11:30:14.6285741Z ##[debug]agent.proxyurl=undefined
2023-11-17T11:30:14.6286317Z ##[debug]AZURE_HTTP_USER_AGENT=VSTS_c647e1ac-30dd-42ca-b154-eb81d06f1270_build_126_0
2023-11-17T11:30:14.6292486Z ##[debug]testing directory '/opt/hostedtoolcache/dotnet'
2023-11-17T11:30:14.6293331Z ##[debug]testing directory '/opt/hostedtoolcache'
2023-11-17T11:30:14.6294119Z ##[debug]mkdir '/opt/hostedtoolcache/dotnet'
2023-11-17T11:30:14.6296012Z ##[debug]agent.proxyurl=undefined
2023-11-17T11:30:14.6296633Z ##[debug]AZURE_HTTP_USER_AGENT=VSTS_c647e1ac-30dd-42ca-b154-eb81d06f1270_build_126_0
2023-11-17T11:30:14.6300976Z ##[debug]defaultRoot: '/home/vsts/work/1/s'
2023-11-17T11:30:14.6301719Z ##[debug]findOptions.allowBrokenSymbolicLinks: 'false'
2023-11-17T11:30:14.6302341Z ##[debug]findOptions.followSpecifiedSymbolicLink: 'true'
2023-11-17T11:30:14.6303078Z ##[debug]findOptions.followSymbolicLinks: 'true'
2023-11-17T11:30:14.6303697Z ##[debug]findOptions.skipMissingFiles: 'false'
2023-11-17T11:30:14.6304331Z ##[debug]matchOptions.debug: 'false'
2023-11-17T11:30:14.6305023Z ##[debug]matchOptions.nobrace: 'true'
2023-11-17T11:30:14.6306997Z ##[debug]matchOptions.noglobstar: 'false'
2023-11-17T11:30:14.6307572Z ##[debug]matchOptions.dot: 'true'
2023-11-17T11:30:14.6308128Z ##[debug]matchOptions.noext: 'false'
2023-11-17T11:30:14.6309629Z ##[debug]matchOptions.nocase: 'false'
2023-11-17T11:30:14.6383898Z ##[debug]matchOptions.nonull: 'false'
2023-11-17T11:30:14.6384652Z ##[debug]matchOptions.matchBase: 'false'
2023-11-17T11:30:14.6385819Z ##[debug]matchOptions.nocomment: 'false'
2023-11-17T11:30:14.6386316Z ##[debug]matchOptions.nonegate: 'false'
2023-11-17T11:30:14.6386945Z ##[debug]matchOptions.flipNegate: 'false'
2023-11-17T11:30:14.6387498Z ##[debug]pattern: '**/global.json'
2023-11-17T11:30:14.6387943Z ##[debug]findPath: '/home/vsts/work/1/s'
2023-11-17T11:30:14.6388586Z ##[debug]statOnly: 'false'
2023-11-17T11:30:14.6388948Z ##[debug]findPath: '/home/vsts/work/1/s'
2023-11-17T11:30:14.6389402Z ##[debug]findOptions.allowBrokenSymbolicLinks: 'false'
2023-11-17T11:30:14.6389915Z ##[debug]findOptions.followSpecifiedSymbolicLink: 'true'
2023-11-17T11:30:14.6390410Z ##[debug]findOptions.followSymbolicLinks: 'true'
2023-11-17T11:30:14.6390895Z ##[debug]findOptions.skipMissingFiles: 'false'
2023-11-17T11:30:14.6391340Z ##[debug]  /home/vsts/work/1/s (directory)
2023-11-17T11:30:14.6391766Z ##[debug]  /home/vsts/work/1/s/.git (directory)
2023-11-17T11:30:14.6392230Z ##[debug]  /home/vsts/work/1/s/.git/FETCH_HEAD (file)
2023-11-17T11:30:14.6392704Z ##[debug]  /home/vsts/work/1/s/.git/HEAD (file)
2023-11-17T11:30:14.6393173Z ##[debug]  /home/vsts/work/1/s/.git/branches (directory)
2023-11-17T11:30:14.6393654Z ##[debug]  /home/vsts/work/1/s/.git/config (file)
2023-11-17T11:30:14.6394268Z ##[debug]  /home/vsts/work/1/s/.git/description (file)
2023-11-17T11:30:14.6394760Z ##[debug]  /home/vsts/work/1/s/.git/hooks (directory)
2023-11-17T11:30:14.6395331Z ##[debug]  /home/vsts/work/1/s/.git/hooks/applypatch-msg.sample (file)
2023-11-17T11:30:14.6395962Z ##[debug]  /home/vsts/work/1/s/.git/hooks/commit-msg.sample (file)
2023-11-17T11:30:14.6396608Z ##[debug]  /home/vsts/work/1/s/.git/hooks/fsmonitor-watchman.sample (file)
2023-11-17T11:30:14.6397252Z ##[debug]  /home/vsts/work/1/s/.git/hooks/post-update.sample (file)
2023-11-17T11:30:14.6397867Z ##[debug]  /home/vsts/work/1/s/.git/hooks/pre-applypatch.sample (file)
2023-11-17T11:30:14.6398479Z ##[debug]  /home/vsts/work/1/s/.git/hooks/pre-commit.sample (file)
2023-11-17T11:30:14.6399164Z ##[debug]  /home/vsts/work/1/s/.git/hooks/pre-merge-commit.sample (file)
2023-11-17T11:30:14.6399779Z ##[debug]  /home/vsts/work/1/s/.git/hooks/pre-push.sample (file)
2023-11-17T11:30:14.6400360Z ##[debug]  /home/vsts/work/1/s/.git/hooks/pre-rebase.sample (file)
2023-11-17T11:30:14.6400956Z ##[debug]  /home/vsts/work/1/s/.git/hooks/pre-receive.sample (file)
2023-11-17T11:30:14.6401583Z ##[debug]  /home/vsts/work/1/s/.git/hooks/prepare-commit-msg.sample (file)
2023-11-17T11:30:14.6402251Z ##[debug]  /home/vsts/work/1/s/.git/hooks/push-to-checkout.sample (file)
2023-11-17T11:30:14.6402903Z ##[debug]  /home/vsts/work/1/s/.git/hooks/sendemail-validate.sample (file)
2023-11-17T11:30:14.6403516Z ##[debug]  /home/vsts/work/1/s/.git/hooks/update.sample (file)
2023-11-17T11:30:14.6404029Z ##[debug]  /home/vsts/work/1/s/.git/index (file)
2023-11-17T11:30:14.6404490Z ##[debug]  /home/vsts/work/1/s/.git/info (directory)
2023-11-17T11:30:14.6404974Z ##[debug]  /home/vsts/work/1/s/.git/info/exclude (file)
2023-11-17T11:30:14.6405466Z ##[debug]  /home/vsts/work/1/s/.git/logs (directory)
2023-11-17T11:30:14.6405943Z ##[debug]  /home/vsts/work/1/s/.git/logs/HEAD (file)
2023-11-17T11:30:14.6406430Z ##[debug]  /home/vsts/work/1/s/.git/logs/refs (directory)
2023-11-17T11:30:14.6406987Z ##[debug]  /home/vsts/work/1/s/.git/logs/refs/remotes (directory)
2023-11-17T11:30:14.6407623Z ##[debug]  /home/vsts/work/1/s/.git/logs/refs/remotes/origin (directory)
2023-11-17T11:30:14.6408305Z ##[debug]  /home/vsts/work/1/s/.git/logs/refs/remotes/origin/chore (directory)
2023-11-17T11:30:14.6409042Z ##[debug]  /home/vsts/work/1/s/.git/logs/refs/remotes/origin/chore/dotnet-8 (file)
2023-11-17T11:30:14.6409949Z ##[debug]  /home/vsts/work/1/s/.git/logs/refs/remotes/origin/chore/remove-context-from-tests (file)
2023-11-17T11:30:14.6410809Z ##[debug]  /home/vsts/work/1/s/.git/logs/refs/remotes/origin/feature (directory)
2023-11-17T11:30:14.6411615Z ##[debug]  /home/vsts/work/1/s/.git/logs/refs/remotes/origin/feature/initial-commit (file)
2023-11-17T11:30:14.6412458Z ##[debug]  /home/vsts/work/1/s/.git/logs/refs/remotes/origin/feature/validators (file)
2023-11-17T11:30:14.6413306Z ##[debug]  /home/vsts/work/1/s/.git/logs/refs/remotes/origin/feature/validators-3 (file)
2023-11-17T11:30:14.6414067Z ##[debug]  /home/vsts/work/1/s/.git/logs/refs/remotes/origin/main (file)
2023-11-17T11:30:14.6414723Z ##[debug]  /home/vsts/work/1/s/.git/logs/refs/remotes/pull (directory)
2023-11-17T11:30:14.6415487Z ##[debug]  /home/vsts/work/1/s/.git/logs/refs/remotes/pull/6649 (directory)
2023-11-17T11:30:14.6416182Z ##[debug]  /home/vsts/work/1/s/.git/logs/refs/remotes/pull/6649/merge (file)
2023-11-17T11:30:14.6416794Z ##[debug]  /home/vsts/work/1/s/.git/objects (directory)
2023-11-17T11:30:14.6417312Z ##[debug]  /home/vsts/work/1/s/.git/objects/info (directory)
2023-11-17T11:30:14.6417860Z ##[debug]  /home/vsts/work/1/s/.git/objects/pack (directory)
2023-11-17T11:30:14.6418637Z ##[debug]  /home/vsts/work/1/s/.git/objects/pack/pack-3f6ac69aa18d691d622d6d15a9bfb3486b6c1e24.idx (file)
2023-11-17T11:30:14.6419656Z ##[debug]  /home/vsts/work/1/s/.git/objects/pack/pack-3f6ac69aa18d691d622d6d15a9bfb3486b6c1e24.pack (file)
2023-11-17T11:30:14.6420685Z ##[debug]  /home/vsts/work/1/s/.git/objects/pack/pack-3f6ac69aa18d691d622d6d15a9bfb3486b6c1e24.rev (file)
2023-11-17T11:30:14.6421522Z ##[debug]  /home/vsts/work/1/s/.git/refs (directory)
2023-11-17T11:30:14.6422031Z ##[debug]  /home/vsts/work/1/s/.git/refs/heads (directory)
2023-11-17T11:30:14.6422561Z ##[debug]  /home/vsts/work/1/s/.git/refs/remotes (directory)
2023-11-17T11:30:14.6423140Z ##[debug]  /home/vsts/work/1/s/.git/refs/remotes/origin (directory)
2023-11-17T11:30:14.6423786Z ##[debug]  /home/vsts/work/1/s/.git/refs/remotes/origin/chore (directory)
2023-11-17T11:30:14.6424487Z ##[debug]  /home/vsts/work/1/s/.git/refs/remotes/origin/chore/dotnet-8 (file)
2023-11-17T11:30:14.6425294Z ##[debug]  /home/vsts/work/1/s/.git/refs/remotes/origin/chore/remove-context-from-tests (file)
2023-11-17T11:30:14.6426099Z ##[debug]  /home/vsts/work/1/s/.git/refs/remotes/origin/feature (directory)
2023-11-17T11:30:14.6427047Z ##[debug]  /home/vsts/work/1/s/.git/refs/remotes/origin/feature/initial-commit (file)
2023-11-17T11:30:14.6427825Z ##[debug]  /home/vsts/work/1/s/.git/refs/remotes/origin/feature/validators (file)
2023-11-17T11:30:14.6428594Z ##[debug]  /home/vsts/work/1/s/.git/refs/remotes/origin/feature/validators-3 (file)
2023-11-17T11:30:14.6429299Z ##[debug]  /home/vsts/work/1/s/.git/refs/remotes/origin/main (file)
2023-11-17T11:30:14.6429902Z ##[debug]  /home/vsts/work/1/s/.git/refs/remotes/pull (directory)
2023-11-17T11:30:14.6430505Z ##[debug]  /home/vsts/work/1/s/.git/refs/remotes/pull/6649 (directory)
2023-11-17T11:30:14.6431150Z ##[debug]  /home/vsts/work/1/s/.git/refs/remotes/pull/6649/merge (file)
2023-11-17T11:30:14.6431721Z ##[debug]  /home/vsts/work/1/s/.git/refs/tags (directory)
2023-11-17T11:30:14.6432202Z ##[debug]  /home/vsts/work/1/s/.gitignore (file)
2023-11-17T11:30:14.6432657Z ##[debug]  /home/vsts/work/1/s/.idea (directory)
2023-11-17T11:30:14.6433301Z ##[debug]  /home/vsts/work/1/s/.idea/.idea.Entertainment.Microservices.Validators (directory)
2023-11-17T11:30:14.6434174Z ##[debug]  /home/vsts/work/1/s/.idea/.idea.Entertainment.Microservices.Validators/.idea (directory)
2023-11-17T11:30:14.6435120Z ##[debug]  /home/vsts/work/1/s/.idea/.idea.Entertainment.Microservices.Validators/.idea/.gitignore (file)
2023-11-17T11:30:14.6436076Z ##[debug]  /home/vsts/work/1/s/.idea/.idea.Entertainment.Microservices.Validators/.idea/aws.xml (file)
2023-11-17T11:30:14.6437047Z ##[debug]  /home/vsts/work/1/s/.idea/.idea.Entertainment.Microservices.Validators/.idea/encodings.xml (file)
2023-11-17T11:30:14.6438062Z ##[debug]  /home/vsts/work/1/s/.idea/.idea.Entertainment.Microservices.Validators/.idea/indexLayout.xml (file)
2023-11-17T11:30:14.6438971Z ##[debug]  /home/vsts/work/1/s/Entertainment.Microservices.Validators (directory)
2023-11-17T11:30:14.6439981Z ##[debug]  /home/vsts/work/1/s/Entertainment.Microservices.Validators/Entertainment.Microservices.Validators.csproj (file)
2023-11-17T11:30:14.6441049Z ##[debug]  /home/vsts/work/1/s/Entertainment.Microservices.Validators/ErrorHandling (directory)
2023-11-17T11:30:14.6442094Z ##[debug]  /home/vsts/work/1/s/Entertainment.Microservices.Validators/ErrorHandling/ValidationResultException.cs (file)
2023-11-17T11:30:14.6443113Z ##[debug]  /home/vsts/work/1/s/Entertainment.Microservices.Validators/README.md (file)
2023-11-17T11:30:14.6444082Z ##[debug]  /home/vsts/work/1/s/Entertainment.Microservices.Validators/Validation (directory)
2023-11-17T11:30:14.6445026Z ##[debug]  /home/vsts/work/1/s/Entertainment.Microservices.Validators/Validation/BaseValidator.cs (file)
2023-11-17T11:30:14.6446082Z ##[debug]  /home/vsts/work/1/s/Entertainment.Microservices.Validators/Validation/GeoLocationValidators.cs (file)
2023-11-17T11:30:14.6447115Z ##[debug]  /home/vsts/work/1/s/Entertainment.Microservices.Validators/ValidationDbContext.cs (file)
2023-11-17T11:30:14.6448010Z ##[debug]  /home/vsts/work/1/s/Entertainment.Microservices.Validators.Tests (directory)
2023-11-17T11:30:14.6449097Z ##[debug]  /home/vsts/work/1/s/Entertainment.Microservices.Validators.Tests/Entertainment.Microservices.Validators.Tests.csproj (file)
2023-11-17T11:30:14.6451731Z ##[debug]  /home/vsts/work/1/s/Entertainment.Microservices.Validators.Tests/GeolocationValidatorTests.cs (file)
2023-11-17T11:30:14.6452777Z ##[debug]  /home/vsts/work/1/s/Entertainment.Microservices.Validators.sln (file)
2023-11-17T11:30:14.6453434Z ##[debug]  /home/vsts/work/1/s/azure-pipelines.yml (file)
2023-11-17T11:30:14.6453918Z ##[debug]  /home/vsts/work/1/s/global.json (file)
2023-11-17T11:30:14.6454389Z ##[debug]  /home/vsts/work/1/s/nuget.config (file)
2023-11-17T11:30:14.6454823Z ##[debug]87 results
2023-11-17T11:30:14.6455153Z ##[debug]found 87 paths
2023-11-17T11:30:14.6455488Z ##[debug]applying include pattern
2023-11-17T11:30:14.6455946Z ##[debug]adjustedPattern: '/home/vsts/work/1/s/**/global.json'
2023-11-17T11:30:14.6456423Z ##[debug]1 matches
2023-11-17T11:30:14.6456741Z ##[debug]1 final results
2023-11-17T11:30:15.3019484Z ##[debug]Finding channel 8.0 for version 8.0.0
2023-11-17T11:30:16.8335174Z No matching sdk version could be found for specified version: 8.0.0 Kindly note the preview versions are only considered in latest version searches if Include Preview Versions checkbox is checked.
2023-11-17T11:30:16.8344520Z Version 8.0.0 could not be found in its channel, will now search in adjacent channels.
2023-11-17T11:30:16.8349995Z Searching for version in channel 8.0
2023-11-17T11:30:18.3166130Z ##[debug]task result: Failed
2023-11-17T11:30:18.3197878Z ##[error]sdk version matching: 8.0.0 could not be found
2023-11-17T11:30:18.3205260Z ##[debug]Processed: ##vso[task.issue type=error;]sdk version matching: 8.0.0 could not be found
2023-11-17T11:30:18.3207185Z ##[debug]Processed: ##vso[task.complete result=Failed;]sdk version matching: 8.0.0 could not be found
2023-11-17T11:30:18.3243960Z ##[section]Finishing: NuGet: SDK

Repro steps

pool:
  vm-image: ubuntu-latest

steps:  
  - task: UseDotNet@2
      inputs:
        packageType: sdk
        useGlobalJson: true

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions