.NET 6 upgrade - Syntax for adding a step

philipshishov's Avatar


17 Mar, 2022 09:16 PM


I upgraded my app to .NET 6.0 and then got an error during the appveyor build:
"The current .NET SDK does not support targeting .NET 6.0"

So I tried the following solution:

- task: UseDotNet@2 displayName: 'Use .NET Core sdk 6.0.x' inputs: version: 6.0.x includePreviewVersions: true

But I think the syntax is not the correct one.

Link to GitHub:

Link to AppVeyor:

Thanks for your help,

  1. philipshishov closed this discussion on 18 Mar, 2022 11:25 AM.

  2. philipshishov re-opened this discussion on 18 Mar, 2022 11:25 AM

  3. 1 Posted by philipshishov on 18 Mar, 2022 11:27 AM

    philipshishov's Avatar

    Found the solution:

    Change the Build Worker Image to VS 2022 and add "image: Visual Studio 2022"
    to appveyor.yml


  4. philipshishov closed this discussion on 18 Mar, 2022 11:27 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac