Skip to content

Azure DevOps Pipeline doesn't support .NET 6? (VS2019 on windows-latest pool) #6907

@mikeKuester

Description

@mikeKuester

Description

I upgraded my project from .NET 5 to .NET 6 and wanted to execute a "build, test and publish" pipeline on Azure DevOps. That fails because the hosted agent does not support .NET 6 by default.

pool:
  vmImage: 'windows-latest'

I added an UseDotNet task in order to install the .NET 6 SDK which works, but that the build task failed ...

- task: UseDotNet@2
  displayName: 'Install .NET 6 SDK'
  inputs:
    packageType: 'sdk'
    version: '6.0.x'
    performMultiLevelLookup: true

telling me, that Visual Studio 2019 does not support .NET 6.

##[warning]C:\hostedtoolcache\windows\dotnet\sdk\6.0.100\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.DefaultItems.targets(134,5): Warning NETSDK1182: Targeting .NET 6.0 in Visual Studio 2019 is not supported.

I tried to set the "Compatible Visual Studio version", but than seems to be ignored:

    vsVersion: '17.0.0'

I would expect, that after the official release of .NET 6 the "latest" hosted agents would also support this new version.

Configuration

Regression?

Other information

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions