Publish Code Coverage Report in Azure DevOps Services pipeline execution summary

This post details the steps and YAML configuration required to publish code coverage reports in Azure DevOps Services pipelines. It introduces the use of the 'coverlet.msbuild' NuGet package to generate Cobertura-formatted coverage files from .NET Core projects. It also outlines the necessary Azure Pipelines tasks: 'UseDotNet@2' for SDK setup, 'DotNetCoreCLI@2' for building and testing with coverage collection enabled, 'reportgenerator@4' (a third-party task) for processing the coverage results, and 'PublishCodeCoverageResults@1' to display the results in the pipeline summary. The post also highlights limitations, such as the lack of native UI support for code coverage in build logs for .NET Core projects and the inapplicability to non-SDK-style .NET Framework projects.