title: UseDotNet@2 task fails to pull .net 6 SDk - Azure pipelines
body: <p>I am trying to build a .Net 6 application using <code>UseDotNet@2</code> azure devops task. But the task is failing with below error.</p>
  <pre><code> pool:
     vmImage: windows-2019
  
  
  - task: UseDotNet@2
    displayName: Use .NET 
    inputs: 
      packageType: 'sdk'
      version: 6.x
      vsVersion: 17.0.x
  </code></pre>
  <p><a href="https://i.stack.imgur.com/sW92q.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sW92q.png" alt="enter image description here" /></a></p>
  <p>But same task is able to pull preview version of .Net 6 when I specify IncludePreviewVersions as true.</p>
  <p><a href="https://i.stack.imgur.com/H7H97.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/H7H97.png" alt="enter image description here" /></a></p>
  <p>Has any one faced this issue? Any help would be appreciated!</p>