dotnet-sonarscanner
12.0.0
Prefix Reserved
dotnet tool install --global dotnet-sonarscanner --version 12.0.0
dotnet new tool-manifest
dotnet tool install --local dotnet-sonarscanner --version 12.0.0
#tool dotnet:?package=dotnet-sonarscanner&version=12.0.0
nuke :add-package dotnet-sonarscanner --version 12.0.0
<p align="center"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://assets-eu-01.kc-usercontent.com/ef593040-b591-0198-9506-ed88b30bc023/a23fc7ba-23f0-489a-829d-ed88c0748521/Sonar_Logo_Dark%20Backgrounds.svg"> <img src="https://assets-eu-01.kc-usercontent.com/ef593040-b591-0198-9506-ed88b30bc023/82c13eba-d95c-4bb8-8007-7ce77c14e043/Sonar_Logo_Light%20Backgrounds.svg" alt="Sonar logo" width="400"> </picture> </p>
SonarScanner for .NET
SonarScanner for .NET is a tool to analyze .NET projects with SonarQube. It integrates SonarQube analysis into projects built with MSBuild or the dotnet command and sends the results to SonarQube Server or SonarQube Cloud.
Learn more about the SonarQube product family, then choose the scanner distribution that fits your build environment below.
SonarScanner for .NET is distributed as a
For more info please look at our documentation page
and at our user guides
- Generate Test Coverage Reports for C#, VB.NET
- How to find logs about importing code coverage
- Troubleshooting guide for .NET code coverage import
- The Sonar guide for investigating the performance of .NET analysis
- Configuration of WarningsAsErrors for .NET build
Contributing
Check out the contributing page to see the best places to log issues and start discussions.
Security Issues
If you believe you have discovered a security vulnerability in Sonar's products, please check this document
License
Copyright (C) SonarSource Sàrl.
Licensed under the GNU Lesser General Public License, Version 3.0
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp3.1 is compatible. |
-
.NETCoreApp 3.1
- No dependencies.
| Version | Downloads | Last Updated | |
|---|---|---|---|
| 12.0.0 | 183,596 | 10/15/2026 | |
| 11.3.0 | 2,501,370 | 9/2/2026 | |
| 11.2.1 | 7,890,050 | 4/2/2026 | |
| 11.2.0 | 1,381,476 | 3/9/2026 | |
| 11.1.0 | 1,661,897 | 2/2/2026 | |
| 11.0.0 | 4,585,449 | 10/15/2025 | |
| 10.4.1 | 1,294,904 | 9/23/2025 | |
| 10.4.0 | 88,819 | 9/22/2025 | |
| 10.3.0 | 2,503,764 | 7/16/2025 | |
| 10.2.0 | 4,337,743 | 6/3/2025 | |
| 10.1.2 | 1,915,519 | 4/16/2025 | |
| 10.1.1 | 1,061,162 | 3/25/2025 | |
| 10.1.0 | 264,455 | 3/19/2025 | |
| 10.0.0 | 207,965 | 3/13/2025 | |
| 9.2.1 | 868,254 | 2/25/2025 | |
| 9.2.0 | 214,634 | 2/19/2025 | |
| 9.1.0 | 558,882 | 2/6/2025 | |
| 9.0.2 | 2,964,283 | 11/12/2024 | |
| 9.0.1 | 590,518 | 10/25/2024 | |
| 9.0.0 | 1,146,515 | 9/27/2024 |
All release notes for SonarScanner .NET can be found on the GitHub site - https://github.com/SonarSource/sonar-scanner-msbuild/releases