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
0
votes
0 answers

SonarQube not excluding a specific rule

We are trying to suppress a couple of specific rules: csharpsquid:S3990 & csharpsquid:S4041 from analysis, we can see that the rule csharpsquid:S4041 is being excluded but violations\issues for csharpsquid:S3990 are still being shown in analysis…
0
votes
0 answers

SonarQube results not displaying coverage details for all projects

We have a private sonarqube instance setup on our infrastructure, we analyzed a project source code and see that analysis results shown in sonarqube dashboard do not include all projects as shown in VSTS code coverage results. The excluded projects…
0
votes
2 answers

Difference in codecoverage report of VSTS build and SonarQube

I have a set of .Net projects with a couple of test projects. I ran a build and from VSTS build i see that my Lines covered % is 45.24(8213/18153) but when i see the same from SonarQube, it shows me 13.3%(361/2717). I'm wondering how does sonar…
0
votes
1 answer

Missing SonarQube for MS Build 4.0 build step in TFS build steps

Sonarqube was working fine until I'm trying to scan a new project with Xunit tests and got this error: error MSB4062: The "IsTestFileByName" task could not be loaded from the assembly…
0
votes
2 answers

Sonar MSBuild: Getting coverage reports on Linux

I have managed to perform static code analysis for a .NET core project using SonarQube Scanner for MSBuild, on a debian:stretch docker container. I am now trying to produce a coverage report. Unless I am wrong, the relevant guidelines hint that you…
pkaramol
  • 16,451
  • 43
  • 149
  • 324
0
votes
0 answers

Sonarqube scanner for msbuild pre-processing failed

From Jenkins I want to analyze my .net projects. I have configured SonarQube scanner for MSbuild by using "Install automatically" in 'manage jenkins --> global tool configuration'. For job Configuration I have used the SonarQube documentation…
Darshana Patel
  • 507
  • 1
  • 11
  • 25
0
votes
1 answer

no bugs being reported from sonar c#

SonarC# 6.7.1 (build 4347) SonarQube Version 6.7.1 (build 35068) Quality Profile: Sonar way (outdated copy) because the current Sonar Way quality profile returns nothing at all. Running the current MSBuild.SonarQube.Runner (SonarQube Scanner for…
0
votes
1 answer

SonarQube Scanner for MSBuild Architecture

Does anyone know if the SonarQube Scanner for MSBuild does a scan as part of the build and sends back only the results to SonarQube or is the EXE being instrumented at which point we could send the artifact to SonarQube on a Linux machine for…
0
votes
0 answers

SonarQube parallel builds: System.IO.IOException: The file SonarQube.Integration.ImportBefore.targets already exists

When running multiple different or parallel jobs in Jenkins that involve the SonarQube Scanner for MSBuild, this exception immediately terminates the build job: 10:46:22 [workspace] $…
0
votes
1 answer

SonarQube xproj not supported?

I am trying to configure SonarQube to build .net core projects, the build itself succeed but is getting the following error in the Complete SonarQube Analysis build step: 2017-07-27T08:25:21.5598883Z ##[error]No analysable projects were found.…
Mc Kevin
  • 962
  • 10
  • 31
0
votes
2 answers

SonarQube plug-in not scanning C# files during TFS Build

I am running SonarQube server v6.4 with v6.1 of the C# plugin. We have v3.0.0 of the SonarQube TFS extension installed in our TFS 2015 (Update 3) instance. I am having issues with SonarQube scanning .cs files. There are a few warnings in the output…
aoggz
  • 1
  • 1
  • 3
0
votes
0 answers

Is there any MsBuild property $(???) for Unit Test executions?

I am trying to assign a condition to a "Target", With the intention of evaluating whether the compilation is produced by the test run or not img Run All Tests img Singel Test But, I do not know what property to use $(?????)
0
votes
1 answer

Failed to locate the code coverage command line tool , MSBuild with SonarQube

Getting the following error's once build is triggered from the build definition. 3:46:16 AM Failed to locate the code coverage command line tool Post-processing failed. Exit code: 1 Exception Message: TF270015: 'MSBuild.SonarQube.Runner.exe'…
Asif K
  • 1
  • 1
0
votes
1 answer

On prem Sonar Server access issue from VSTS/TFS Online for Sonar analysis step

We are trying to add Sonar pre and post build steps in VSTS / TFS Online as explained in here and here . Both are pretty good documentation from Sonar and MS. here are steps followed 1. Exposed internal Sonar (hosted inside company firewall on…
0
votes
1 answer

Build fails when try to run SonarQube Scanner for MSBuild on C# project

I am trying to analyze my C# code with SonarQube Scanner for MSBuild from command line. I have installed the SonarQube Scanner for MSBuild 2.2.0.24 (http://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner+for+MSBuild) and have all…
Zeno
  • 581
  • 1
  • 7
  • 23
1 2 3
8 9