.NET 6 upgrade - Syntax for adding a step

philipshishov's Avatar

philipshishov

17 Mar, 2022 09:16 PM

Hello,

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:

steps:
- 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:
https://github.com/PhilShishov/Compare-App/blob/master/appveyor.yml

Link to AppVeyor:
https://ci.appveyor.com/project/PhilShishov/compare-app

Thanks for your help,
Philip

  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

    Regards,

  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

Generic

? 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