Wednesday, July 14, 2021

Azure DevOps: Building Projects Targeting .NET 6

This is a quick post on how you can build a project targetting .NET 6 in Azure DevOps Pipelines.

As of the day I am writing this post (14th July 2021), Microsoft hosted build agents in Azure DevOps doesn't support .NET 6, so if you have a pipeline that builds a project that targets .NET 6, you need to first use this task: Use .NET Core task

It's pretty straight-forward, before the build task, you need to add this task as follows.
task: UseDotNet@2
  displayName: 'Use .NET Core sdk'
  inputs:
    packageType: 'sdk'
    version: '6.0.x'
    includePreviewVersions: true
Hope this helps.

Happy Coding.

Regards,
Jaliya

No comments:

Post a Comment