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
1 answer

SonarQube: File is not under the project directory

I have a lot of warnings when I run the MSBuild.SonarQube.Runner. They are in the format: EXEC : warning : File is not under the project directory and cannot currently be analysed by SonarQube. File: [file], project [project] I found the post about…
tobre
  • 1,347
  • 3
  • 21
  • 53
1
vote
2 answers

No ProjectInfo.xml files were found error from command prompt using MSBuild SonarQube Runner v1.0

I'm trying out SonarQube using the new MSBuild SonarQube Runner v1.0. The Pre-processing works fine E:\sonarQube\MSBuild.SonarQube.Runner-1.0>MSBuild.SonarQube.Runner.exe begin /k:"MyKey" /n:"MyProject" /v:"1.0" ....... Process returned exit code…
1
vote
1 answer

How to configure SCM support for MSBuild SonarQube Runner?

I am using SonarQube 5.1 with MSBuild SonarQube Runner for our quality inspection. Currently SCM support is not there although I have already installed TFVC plugin. I get the following log from the analyze process 07:18:22 07:18:22.352 INFO -…
1
vote
1 answer

Exclude WCF datasource file from SonarQube analysis

After updating to the MSBuild Runner V1 SonarQube picks up the reference to WCF Datasource files and tries to analyse it. This breaks ofc due to the length of the full path being longer than limit set by MS and logs the following error: Cannot…
fluf
  • 1,261
  • 2
  • 22
  • 36
1
vote
1 answer

MSBuild SonarQube runner in command line

I have a problem analyzing a project using MSBuild SonarQube runner. SonarQube database and server are up and running, i have tried to analyze an example project and it all went well. But when i try to analyze my project something goes wrong. The…
boogieman
  • 567
  • 2
  • 5
  • 10
1
vote
1 answer

Does the MSBuild SonarQube Runner support C++ projects?

We have Visual Studio Solutions which may consist of C# and C++ (CLI) projects. At the moment we are using the C# and C++ Community Plugins together with the SonarRunner to analyse our code. Now the C# plugin marks the SonarRunner as deprecated.…
1
vote
1 answer

Sonarqube 5.1 TFS sonar msbuild runner with branches

We have just started using Sonarqube 5.1 integrated in TFS build as described on this page http://www.sonarqube.org/announcing-sonarqube-integration-with-msbuild-and-team-build/ We have one main branch, and two development branches for the same…
0
votes
1 answer

How to include folders projects for sonar analysis which are not part of solution using sonar scanner for .net

How do I configure the sonar to include folders or projects which are not part of the current .net solution. I have the following structure my current project: MyProject - Root Folder ProjectA - Normal .net…
0
votes
0 answers

SonarScanner.MSBuild.exe is not recognized on windows agent - GitHub Actions

I'm getting below error on windows agent while beginning the Sonarqube scanner. MSBuild.SonarQube.Runner.exe : The term 'MSBuild.SonarQube.Runner.exe' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the…
0
votes
1 answer

dotCover Upload to Sonar from Jenkins Plugin

So I am having trouble uploading our dotCover results from Jenkins to our Sonar instance. We are using the SonarScanner for MSBuild plugin. All of the documentation I have found like here:…
j5juice
  • 623
  • 3
  • 8
  • 19
0
votes
1 answer

Unable to load component class org.sonar.batch.bootstrap.BatchPluginInstaller

I'm running Jenkins ver 2.89.2 with SonarQube Scanner plugin ver 2.4 When running the scanner for MSBuild, it appears to be working, I see lines such as this in my logs: Downloading from http://MyServer:9000/api/server/version... etc... But, then it…
0
votes
0 answers

Unable to create Java Virtual Machine Error while running Sonar analysis

Version Used SonarQube 7.3 integrated with TC using SonarScanner using version sonar-scanner-msbuild.4.0.2.892 Error received Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.* Invalid…
Opps
  • 59
  • 1
  • 8
0
votes
0 answers

SonarQube for VB.net 2.0

I am trying to find out a possibility to run SonarQube scan for VB.net 2.0 project. I use Visual studio 2005 to compile the code. I understand that SonarScanner for MSBuild doesn't support 2.0 Framework and currently MSBuild 14.0 and 15.0 are…
Ela
  • 419
  • 1
  • 6
  • 20
0
votes
1 answer

ncloc metric is missing in some of the Sonarqube 6.7 dashboard

TeamCity Enterprise 9.1 (build 36973) Sonarqube Version 6.7.2 (build 37468) SonarC# 6.8.2 (build 4717) SonarQube Scanner for MSBuild 3.0.2 Visual Studio build step (VS 2015) is called in between Sonarqube initiation and end steps. Build is…
Coc
  • 437
  • 1
  • 3
  • 19
0
votes
1 answer

Correct usage of SQAnalysisFileItemTypes

I want to analyze a C++ project created with Qt. But all header files that have a QtMoc tag in the .vcxproj file are ignored. For example: I think its because this tool…
tiga05
  • 3
  • 1
  • 7
1 2 3
8 9