-
Notifications
You must be signed in to change notification settings - Fork 5k
Closed
Description
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
Cedervall, jpgarza93, Ogglas, HeroMaxPower, BrendanSluke and 13 more
Metadata
Metadata
Assignees
Labels
No labels