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

ERROR: XXX.cs can't be indexed twice. Please check that inclusion/exclusion patterns produce disjoint sets for main and test files

We've upgraded our SonarQube instance to 6.7 version and since then we see a project failing with below error during SonarQube analysis from VSTS build. ERROR: Error during SonarQube Scanner execution ERROR: File …
3
votes
1 answer

SonarQube Scanner for MSBuild on macOS using mono

I'm trying to use SonarQube Scanner for MSBuild on a Xamarin project on macOS using mono. As MSBuild 15.0 is now shipped with Xamarin, I figured this could actually work. I can successfully run the scanner's "begin" using mono like so: mono…
Benjamin
  • 830
  • 1
  • 8
  • 16
3
votes
1 answer

SonarQube with custom Roslyn-based rules

I have a SonarQube 5.3.1 in place with the C# Plugin 4.5.0 installed. Basic included rules are detected as expected. Now, I want to use the Roslyn SDK project (https://github.com/SonarSource-VisualStudio/sonarqube-roslyn-sdk) to add my tailor made…
3
votes
1 answer

How to Pass -X Switch to SonarQube Scanner for MSBuild?

Log message states `ERROR: Re-run SonarQube Runner using the -X switch to enable full debug logging.` How do I pass -X switch to Sonar Runner from MSBuild.SonarQube.Runner.exe. Is it in the begin command or end command? My search is not yielding…
WiSeeker
  • 812
  • 9
  • 24
3
votes
0 answers

SonarQube MSBuild Runner does not import test and code coverage results

I've configured my Jenkins build server to analyze my code and post to my SonarQube server. I have successfully posted the scan results but the Test and VS Code Coverage results do not get posted to SonarQube. I've added the required additional…
demaskey
  • 31
  • 3
3
votes
1 answer

FxCop must be installed error

I'm building and analyzing a sample C# project on a build server with the following configuration: Jenkins 1.630; SonarQube 5.3 with all the updates; FxCop 10.0 I put the following steps in Jenkins Job: SonarQube Scanner for MSBuild - Begin…
Mario
  • 103
  • 1
  • 6
3
votes
1 answer

Duplicate project GUID with MSBuild Runner

I have a solution with three projects which fails to be analyzed by SonarQube. It's a c# project, a BizTalk project (btproj) and a test project. The BizTalk and test-project both has project references to the c# project, while the test project has…
3
votes
1 answer

Excluding projects from the MSBuild Runner without changing csproj files

Using SonarQube 5.2 (MSBuild.SonarQube.Runner.exe)... Given a Visual Studio solution containing 10 C# projects, is it possible to exclude half of those projects from SonarQube analysis without having to edit the *.csproj files directly? (I'm working…
ScheuNZ
  • 911
  • 8
  • 19
3
votes
1 answer

Using Sonar MSBuild Runner with /p:IsPackaging=True

I've a Visual Studio Team Services build definition containing a Visual Studio Build task surrounded by the Sonar Begin Analysis and End Analysis task. The Visual Studio Build packages a SharePoint provider hosted add-in using the…
3
votes
1 answer

The property "sonar.cs.fxcop.assembly" must be set and the project must have been built

We are using SonarQube 5.1 and latest MSBuild Sonar Runner C# plugin 4.2 . While running the analysis with FxCop Rules enabled we Caused by: java.lang.IllegalArgumentException: The property "sonar.cs.fxcop.assembly" must be set and the project…
SandBox
  • 165
  • 2
  • 11
3
votes
1 answer

SonarQube MSBuild-Runner use custom FXCop rules from project file

I have a question regarding FXCop analysis using SonarQube with the MSBuild-Runner. I have realized that the MSBuild-Runner loads a rules file from the server which matches the quality profile in Sonar and uses that file for the FXCop run. In our…
3
votes
1 answer

How to use FxCop analysis with the new MsBuild Sonar runner?

I am trying to migrate from the old Sonar runner to the new MsBuild Sonar runner in a .NET project. The last problem I have is doing the FxCop analysis. If the quality profile in Sonar contains any FxCop rules, I get the following build…
Mark Vincze
  • 7,737
  • 8
  • 42
  • 81
2
votes
1 answer

Sonar Qube for Ubuntu scans .NET project with success but no issues analyzed

I configured the MSBuild for Sonar Scanner and Sonar Scanner itself on Ubuntu, after banging my head on wall many times in many days yielded some fruitful results so that I am able to scan the .NET project on Ubuntu it did not shows any error begin…
2
votes
1 answer

SonarQube MSBuild integration failed with Jenkins, works fine on command line

I am analyzing my .NET project with sonarqube and I want to automate it with my jenkins build server. I use MSBuild 14.0.23107.0, sonarqube 6.7.1.35068, sonar-scanner-msbuild-4.0.2.892, sonar-csharp-plugin-6.7.1.4347, Jenkins 2.89.3 I tried the…
Frieder
  • 1,208
  • 16
  • 25
2
votes
2 answers

SonarQube 6.7 .net and javascript in one project

My question is around the scenario where a .net web application has a UI project with javascript and JEST unit tests. Is it normal to have 1 sonarQube project that can accurately show the code coverage, VStests, and Jest Unit tests of both .cs and…
Matt B.
  • 397
  • 1
  • 4
  • 7
1
2
3
8 9