Questions tagged [sonarqube-msbuild-runner]

The SonarQube Scanner for MSBuild is the recommended way to launch a SonarQube analysis for projects/solutions using MSBuild or dotnet command as build tool. It is the result of a collaboration between SonarSource and Microsoft.

It is available as a standalone command line executable and as build steps for VSTS-TFS and Jenkins.

It supports .Net Core multi-platform projects and it can be used on non-Windows platforms.

Project Homepage

Issue Tracking

SourceCode on GitHub

130 questions
32
votes
6 answers

How to make Sonarqube exclude a .NET (C#) project from coverage measures

Sonarqube allows for individual files to be excluded from code coverage by adding patterns in the sonar.coverage.exclusions key. This can be done on a project level by adding them in the UI and even in a .csproj file by specifying a SonarQubeSetting…
mvandevy
  • 421
  • 1
  • 5
  • 4
8
votes
1 answer

Control module name with SonarQube Scanner for MSBuild

I tried to change the module name of a C# project by adding the following xml fragment to my csproj file: Core.XY This works…
Stefan Egli
  • 17,398
  • 3
  • 54
  • 75
7
votes
1 answer

SonarQube Github plugin not writing issues to pull request

Problem Description I have set up our CI tool (Teamcity) to run a SonarQube preview analysis of a project each time a pull request is made in Github. To test that everything worked correctly, I added a few issues to the codebase before submitting a…
nils1k
  • 467
  • 5
  • 20
4
votes
0 answers

Multi jobs failing SonarQube analysis and MsBuild in Azure DevOps build pipeline

in an Azure DevOps build pipeline, I would like to run a MsBuild task in an Azure hosted agent and a sonar analysis task in a self-hosted agent. I understand that I need to pass artifacts from a job to another. I try to use Publish and Download…
4
votes
1 answer

Is there a verbose mode of SonarQube.Scanner.MSBuild.exe?

I have some problems while scanning a mixed C#, C++ solution with SonarQube.Scanner.MSBuild.exe. (during the SonarQube.Scanner.MSBuild.exe end) So I want to ask if there is a verbose option to activate enhanced/debug output. The output is that a…
Daniel W.
  • 938
  • 8
  • 21
4
votes
1 answer

Is SonarQube ignoring isSuppressedInSource?

I am using the SonarQube Scanner for MSBuild 2.0 with SonarQube 5.4. I have added a SonarQube Plugin for the Roslyn Wintellect.Analyzers NuGet package to the SonarQube server and added the rules to the Quality Profile that my SonarQube project uses.…
4
votes
2 answers

MSBuild.SonarQube.Runner.exe end, PostProcessing failed exit code 1

I am trying to use C# Plugin for SonarQube using MSbuild.SonarQube.Runner SonarQube Server - 4.5.6 Operating system - Windows 32-bit machine Database - MySQL 5.6.17 MSbuild.SonarQube.Runner -…
atulya
  • 535
  • 2
  • 8
  • 25
4
votes
2 answers

Error on MSBuild.SonarQube.Runner.exe end command for Code Coverage Results

I’m trying to run C# Code Coverage Results Import but get error on the last step. I created .coveragexml file (named test.coveragexml) via visual studio (TEST -Analyze Code Coverage- All Tests), saved it in the project directory. Run the following…
shani
  • 51
  • 1
  • 7
4
votes
2 answers

Using SonarQube with TeamCity and C# / .NET

We use TeamCity as our build server - how does one setup TeamCity to run SonarQube analysis for C# / .NET solutions? I'm thinking we'll need to execute the MSBuild runner as a command line task since the TeamCity SonarQube runner doesn't call the…
John
  • 43
  • 1
  • 3
4
votes
1 answer

MSBuild SonarQube Runner: "Failed to locate the code coverage command line tool" still with version 1.0.1

I am trying to use MSBuild SonarQube Runner to have my TFS-builds run the Sonar analysis. I have configured the tool to work with our sonar Server according to this manual. Actually I can start an analysis by building manually via console on my…
4
votes
1 answer

MSBuild SonarQube Runner v1.0 returns with code 1 after "Generating the FxCop ruleset"

I'm trying out SonarQube using the new MSBuild SonarQube Runner v1.0. If I install a fresh SonarQube server locally, the following command works fine, and I can build my solution directly afterward, call the 'end' command, and have the results…
Warren
  • 571
  • 1
  • 4
  • 6
4
votes
1 answer

Sonar-msbuild-runner exits with 255 error, Faulting CLR Module

Problem So, we ran into a very strange problem. Currently this is our situation. We have two builds servers attached to two TFS collections Collection A has a build server with Windows Server 2012 R2 installed on it Collection B has a build server…
Rik van den Berg
  • 2,840
  • 1
  • 18
  • 22
4
votes
1 answer

Relationship between SonarQube Runner and SonarQube.MSBuild.Runner

Regarding the announcement of SonarQube integration with MSBuild and Team Build, can anyone advise on the relationship between SonarQube Runner and SonarQube.MSBuild.Runner? I'm unclear whether SonarQube.MSBuild.Runner replaces SonarQube Runner or…
4
votes
1 answer

TFS with SonarQube, no product projects, only test projects

I have installed SonarQube on my local development machine by following installation guide: SonarQube Installation Guide for Existing TFS Environment.pdf. The build is succesfull. The project is added to the dashboard. But there was only…
Pascal Naber
  • 1,092
  • 8
  • 14
1
2 3
8 9