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
1
vote
0 answers

Unable to run analysis on SonarQube after upgrade to version 6.2

I’m trying to run the analysis on SonarQube 6.2 using MSBuild scanner but I'm receiving an error immediately on the first C# file analyzed. The error occurs also on a very simple test solution containing only two C# files. The error is the…
1
vote
1 answer

SonarQube scanner for MSBuild searches for a type under wrong assembly

I'm having a weird error with the SonarQube scanner for MSBuild (scanning C# code). When running the tool on my project, i am getting this error: "D:\Repro\Buggy.sln" (Rebuild target) (1) -> "D:\Repro\Buggy.Editor.csproj" (Rebuild target) (3)…
lysergic-acid
  • 19,570
  • 21
  • 109
  • 218
1
vote
1 answer

sonarqube msbuild runner NullPointerException

i'm trying to run SonarQube.Scanner.MSBuild locally from command prompt and I receive always same error above no matter what project i build. Sonar server is remotly and reachable via web interface. I'm building .NET(C#) projects, for .NET4.0 adn…
user810917
  • 241
  • 4
  • 12
1
vote
1 answer

Scanner for MSbuild mandatory parameters in SonarQube.Analysis.xml

By any chance is there a way to have all the mandatory parameters such as project key , project name and version in SonarQube.Analysis.xml ?
user3346347
  • 75
  • 1
  • 5
1
vote
2 answers

SONARQUBE Analysing my source code as test code incorrectly

I have two projects in Sonarqube 6, one of them is running as expected. The other is analysing, but's classifying the code it discovers as test code. See the following extract from the logs : 2016-10-17T15:30:45.9139431Z INFO: ------------- Scan…
1
vote
1 answer

SonarQube C# DotCover report in xml

Is there any way to use the .xml output from a DotCover analysis when importing into SonarQube using the scanner for MSBuild? Currently running: SQ 5.4 C# Plugin 5.0 This is the specific SonarQube property key in question:…
anthonymonori
  • 1,754
  • 14
  • 36
1
vote
1 answer

VS Unit Test Results file (.trx) is not displayed into SonarQube

I have setup SonarQube with the following: sonarqube-5.4 MSBuild.SonarQube.Runner-2.0 VS 2013 (target .net framework 4.5.1) SQLServer2014 Express Edition Windows7Professional SP1 64bit OS I used the above settings and able to publish the code…
Bhanu
  • 831
  • 3
  • 13
  • 28
1
vote
1 answer

SonarQube can't complete the post-build step

I got a Jenkins Server set up on Windows 2012 R2. These are my build settings: Underneath you see the error. It should be said that the pre-build step runs successfully: [Test CSharp Build Job] $…
OmniOwl
  • 5,477
  • 17
  • 67
  • 116
1
vote
2 answers

SonarQube sonar.issue.ignore.multicriteria and MSBuild

I have a Console project and want to disable the rule Console logging should not be used on it. But it seems MSBuild don't get theses exclusions (anything found in Agent logs, or .sonarqube logs) added in project configuration…
BonOeil
  • 158
  • 2
  • 13
1
vote
0 answers

SonarQube: include files outside of the project into analysis

I'm testing SonarQube with a .Net solution file. I'm trying to figure out which files exactly get uploaded/imported into the SonarQube database. Based on my tests with the SonarQube MSBuild runner, it analysis and uploads all files which are stated…
1
vote
1 answer

Error when running SonarQube on TFS build

I have setup a SonarQube 5.2 server following the PDF document "SonarQube Setup Guide For .NET users". The server starts and I can access the website. I added the C#, TFVC, and msbuild runner plugins. The server hosting the sources is TFS2015 and I…
1
vote
3 answers

Does SonarQube MSBuild Runner work with Microsoft.Build API?

I'm programmatically able to call MsBuild.SonarQube.Runner begin (by making calls into referenced assemblies directly), Microsoft.Build.BuildManager.Build and MsBuild.SonarQube.Runner end. But, the issue is Runner end reports that No ProjectInfo.xml…
WiSeeker
  • 812
  • 9
  • 24
1
vote
1 answer

Only one project of the whole solution gets analyzed by sonar MSBuild runner

We have a solution with 5 projects inside. After running the MSBuild runner, our sonar only contains the analysis of one project instead of the complete solution. Execution: cd…
1
vote
0 answers

MSBuild Sonar Runner - FxCop issues are not shown in sonarqube dashboard

I'm using SonarQube v5.0 with MS Build Sonar Runner, C# plugin v4.3 and OpenCover for Code Coverage. I have two QualityProfiles. 1. With only SonarQube rules. 2. With only FxCop rules. Using SonarQube rules QualityProfile, everything works fine.…
Karthik V
  • 21
  • 5
1
vote
1 answer

Does MsBuild SonarQube Runner support encryption?

I see on the page Settings Encryption a section about the MSBuild.SonarQube.Runner configuration file. But the documented portion has a format which doesn't match the example SonarQube.Analysis.xml file. However, I have tried putting these…
nilleb
  • 967
  • 6
  • 28
1 2 3
8 9