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

Analysis failing with error "No FxCop analysis has been performed on this project, whereas it contains cs files"

After upgrading to SonarQube 6.7 LTS, many of our projects started failing during "complete SonarQube analysis" task with below error: [error]java.lang.IllegalArgumentException: No FxCop analysis has been performed on this project, whereas it…
2
votes
1 answer

SonarQube won't analyze C# project named Test*

I have a project called TestCommander, it is not a test project but instead a product that helps people within the organization to write integration tests easier. Obviously I want to analyze this C# code. But as it is now it seem to be ignored by…
Nings
  • 355
  • 1
  • 2
  • 12
2
votes
1 answer

Analyzing non-Visual Studio, Unity C# code with MSBuild/SonarQube via Jenkins

I inherited the responsibility for a SonarQube Linux server which was running version 5.1 and analyzing dozens of Unity C# projects. After upgrading it to SQ 6.1 I discovered that support for analyzing C# projects on non-Windows systems was dropped…
2
votes
0 answers

Missing coverage results for Dotcover in Sonarqube

I am able to generate the HTML reports with the help of DotCover and passing the same to Sonarqube using "/d:sonar.cs.dotcover.reportsPaths=.\dotCover\dotCoverResults.html" (dotcover html has coverage data in it). In Sonar log I do not see any error…
Coc
  • 437
  • 1
  • 3
  • 19
2
votes
1 answer

How to use sonar.cs.msbuild.testProjectPattern

I've read some questions which answers mention that sonar.cs.msbuild.testProjectPattern is used by SonarQube to skip code analysis for Projects that match the pattern. Currently I have a big solution which one of it's projects contains "UnitTesting"…
2
votes
1 answer

Sonarqube coverage with opencover and Nunit

We are currently using Sonarqube 4.5.7 (SonarQube Scanner for MSBuild 2.1) with Nunit and Opencover. Test execution is successful and metrics correctly reported in dashboard. But coverage section in Sonar dashboard is blank and coverage xml shows…
Coc
  • 437
  • 1
  • 3
  • 19
2
votes
0 answers

How to create modules while using MSBuild.SonarQube.Runner?

I am trying to analyze a complex code which include C# and C++ segments, earlier when I was using sonar-runner I had created modules for C++ part of code in the sonar-project.properties file, but now after migrating to MSBuild.SonarQube.Runner, I…
2
votes
1 answer

SonarQube Inspectcode/Resharper plugin result is not matching with Visual Studio Inspection

I have been using the same set of rules defined in DotSettings files. I have set this file under resharper \ manage options. Also when I am running InspectCode.exe I have provided the same. I am using resharper plugin that comes with default…
codebased
  • 6,945
  • 9
  • 50
  • 84
2
votes
1 answer

SonarQube Runner fails on a file having comma in its name

SonarQube: 5.2 Scanner For MSBuild: 1.0.2 Below line exists in FilesToAnalyze.txt deep inside .sonarqube folder ...Help\User\Duplicating,_Renaming,_Deleting_a_Blueprint.htm And, MSBuild.SonarQube.Runner.exe end throws below exception. Notice how…
WiSeeker
  • 812
  • 9
  • 24
2
votes
1 answer

NUnit results not showing up in SonarQube after import

I can't really see if my NUnit reports are being imported in to the SonarQube report suite while I am analyzing a .NET project with the MSBuild scanner. I'm running SonarQube 5.4 with the SonarQube scanner for MSBuild 2.0 and C# plugin v5.0 (and…
anthonymonori
  • 1,754
  • 14
  • 36
2
votes
1 answer

MSBuild.SonarQube.Runner.exe EXECUTION FAILURE with "MSBUILD : error MSB1009: Project file does not exist."

Our .NET solution is compiling well from MSBUILD command line. We're using MSBuild.SonarQube.Runner.exe for Sonar Quality metrics which fails with message EXECUTION FALIURE" during post processing. Log shows error message as "INFO - MSBUILD :…
SACn
  • 1,862
  • 1
  • 14
  • 29
2
votes
0 answers

SonarQube for .NET, coverage not shown for all projects

We have a .NET solution with builds on Visual Studio Team Services (was Visual Studio Online). The build pushes code coverage data to SonarQube (5.3). We see that for some projects the coverage is lower than expected values (compared with what is…
2
votes
1 answer

SonarQube analysis failed while ruining msbuild runner

I am running sonarqube msbuild runner on my build server and I am able to begin analysis and build the project but when I end I am getting below meassage
2
votes
1 answer

Unable to analyse Javascript file with SonarQube

When trying to do analysis of a project using the javascript 2.9 plugin (using SonarQube 5.2 and the MSBuild runner) I am getting the error on a file ERROR: Error during Sonar runner execution [error]Caused by: …
2
votes
1 answer

Exception Message: TF270015: 'MSBuild.SonarQube.Runner.exe' returned an unexpected exit code. Expected '0'; actual '-532462766'

I am trying to integrate SonarQube MSBuild runner with TFS 2013 and I am using SonarQube 5.2 version and MSBuild.SonarQube.Runner-1.0.2 with all the required plug-ins for LDAP, .NET and C#. I get this error when I run the TFS Build: Unhandled…
1 2
3
8 9