Azure DevOps CI for .NET | Restore, Build, Test, Coverage and SonarQube

Published 27/11/2025

Description

Build a complete Azure DevOps CI pipeline for .NET with restore, build, test, TRX results, code coverage, SonarQube analysis, and published artifacts. In this video, I walk through a practical YAML pipeline for a .NET solution that restores dependencies, builds the projects, runs tests, collects TRX logs, publishes code coverage, integrates SonarQube, and outputs artifacts for both a library and a web application. 0:00 - Introduction 0:12 - Description 2:26 - Sample Library 4:14 - Sample Web 5:27 - Build Pipeline Setup 14:46 - Build General Tests 25:47 - Build Library 28:26 - Build Web 31:15 - Conclusion This tutorial is useful if you want a single Azure DevOps pipeline that gives you build validation, test visibility, coverage reporting, and package or deployment artifacts in one place. Azure Pipelines supports publishing code coverage results produced in Cobertura or JaCoCo format, and .NET test workflows commonly publish TRX results back into the pipeline summary for easier review. SonarQube also supports .NET test coverage reporting, which is why adding it to the pipeline is a strong next step when you want both build validation and quality analysis in the same workflow. #AzureDevOps #DotNet #SonarQube Follow me on X: https://l.samayas.eu/jo3eaYEf3E?P=YT&V=33 Buy me a Coffee: https://l.samayas.eu/jX6xL7EWhd?P=YT&V=33 Studio Equipment Camera Sony Alpha ZV-E10 II: https://l.samayas.eu/k7y90TREl0?P=YT&V=33 Secondary Camera Obsbot Tail Air: https://l.samayas.eu/iFQu9WfmCw?P=YT&V=33 Elgato Prompter: https://l.samayas.eu/fHVrqqXtSc?P=YT&V=33 Microphone Rode Wireless GO II: https://l.samayas.eu/afBINjiBXN?P=YT&V=33