...
Use the MSBuild Sonar™ task for the “classic” .NET Framework 4.6+ builds. For other .NET related builds, use the dotnet task.
1 | Install the MSBuild Sonar™Scanner as described in https://docs.sonarqube.org/latest/analysis/scan/sonarscanner-for-msbuild/ Make sure to download the version for .NET Framework 4.6+. Example projects for MSBuild can be found here. |
2 | Configure Build Agent Capability
|
3 | Add a Sonar™ Scanner for MSBuild - Begin Analysis task to your build plan
|
4 | Add a MSBuild task to build your build plan:
|
5 | Add a Sonar™ Scanner for MSBuild - End Analysis task to your build plan
|
6 | Setup test coverage:
|
...
Note | ||
---|---|---|
On SonarQube™ versions older than 9.3 you might encounter this error:
Update your tasks and enable option "Override branch character replacement" with the "-" character as value. |
Insert excerpt | ||||||||
---|---|---|---|---|---|---|---|---|
|