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

Trying to Use MSBuild SonarQube and unable to make it work

I have been using SonarQube for code analyzing at a basic level however now I would like to measure the code against FX-COP rules. Hence I am attempting to use MSBuild SonarQube scanner. I read the documentation thoroughly and have setup my project…
2
votes
1 answer

SonarQube - Cannot insert duplicate key row in object 'dbo.projects'

I keep getting this error when analyzing .net project using msbuild runner - ### Error updating database. Cause: com.microsoft.sqlserver.jdbc.SQLServerException: Cannot insert duplicate key row in object 'dbo.projects' with unique index…
2
votes
1 answer

MSBuild SonarQube runner skipping auto-generated files?

I have set up a local SonarQube 5.1.1 server. I have also installed the C# plugin (version 4.1), as well as the MSBuild runner (version 1.0). I then performed two separate runs on the .NET codebase for the project I am currently working on: Using…
nils1k
  • 467
  • 5
  • 20
2
votes
3 answers

Migrating from sonar-runner to MSBuild Runner. Where did the sonar-project.properties file go?

Scenario: I am migrating our current VS Solution analysis setup from using the sonar-runner to using the MSBuild runner. However I am encountering a fairly significant problem. In the old setup, we specified our project name, key and most…
Kenneth Baltrinic
  • 2,941
  • 2
  • 28
  • 45
2
votes
1 answer

MSBuild SonarQube Runner Resharper Plugin receives skipping info errors File not in sonarqube

SonarQube - V 5.1.1 MSBuild SonarQube Runner - V 1.0 Resharper Plugin - V 2.0 Csharp Plugin - V 4.1 I am running the commands: - D:\SonarQube\sonarqube-5.1.1\MSBuild\MSBuild.SonarQube.Runner.exe begin /key:Test6MSBKey /name:Test6MSBProject…
Chris West
  • 21
  • 2
1
vote
0 answers

How to embed SonarQube Quality gate condition check in Dockerfile for sonar analysis of a dot net project

We have a dot net app and we use Jenkinsfile for the build. Jenkinsfile performs docker build for entire app that has a dockerfile with below instructions for sonar analysis :- RUN if("$Env:SKIP_SQ" -eq 'NO') {…
1
vote
1 answer

The build is configured to run SonarQube analysis but the SonarQube analysis targets could not be located

I am new to .Net and new to SonarScanner with MS Build. I am looking forward for your help on resolving the error I get when I build the project after sonarscanner-msbuild begin process…
1
vote
0 answers

Error while running MSBuild.SonarQube.Runner against C# project

I’m trying to use MSBuild SonarQube scanner for my C# project. RootFolder has a .sln file, and each project (.csproj) is created in a separate folder inside the root folder. I've the project property file in RootFolder. SonarQube server (LTS version…
1
vote
0 answers

Unable to get any analysis result on Sonarqube server after running analysis using Sonar scanner for msbuild

I am using sonarqube commercial as my solution contains vb code too and im running analysis with sonar scanner for msbuild. I am using scanner as per given here . I can see the project on server url but result is zero for all parameters. I have…
Raq
  • 433
  • 1
  • 7
  • 20
1
vote
0 answers

SonarQube Scan is not working on ASP.net Website

I have one application that has both VB.net project and ASP.net website (written in VB). VB.net project has .sln file. ASP.net website was added to that solution. Build works fine. When I try to run SonarQube scan, VB.net files are identified and…
1
vote
1 answer

Programmatic coverage exclusions in SonarQube MSBuild runner

Is there a way to programatically exclude artifacts from Sonar analysis using the MSBuild Scanner? We have a number of different Visual Studio solutions in our git repository. Almost all of these solutions make use of projects containing shared…
nullPainter
  • 2,676
  • 3
  • 22
  • 42
1
vote
0 answers

SonarQube RTC jazz plugin failing

I am working in a .NET environment. I am currently using Jenkins to kick off my automated builds, SCM is Rational Team Concert. I am using SonarQube with the MSBuild Scanner, and the "SonarQube Jazz RTC SCM Plugin" to retrieve blame info (annotate…
1
vote
1 answer

specify the working directory for msbuild

is it possible to specify the working directory for MsBuild? Currently, we experience when we build a Solution with MsBuild the working directory is always the directory where the solution is placed, but we want to have a generic working directory…
aumanjoa
  • 905
  • 1
  • 11
  • 30
1
vote
0 answers

How to enable Public API metrics in SonarQube for C# code

We are trying to add public API metrics to our SonarQube server: Public documented API (%) Public undocumented API We have our SonarQube server setup, analysis, code coverage and everything is getting metrics correctly, but we are not getting any…
1
vote
0 answers

Sonarqube Unhandled Exception: System.ComponentModel.Win32Exception: The system cannot find

Unable to perform analysis with sonarqube-5.6.5 and sonar-scanner-msbuild-2.2.0.24. System Config: 64 bit, Win 7 Java: JAVA 8 U 60/64 bit Getting error in last step while performing analysis: call C:\TestTools\SonarSetup\sonar-scanner-msbuild-…
1 2 3
8 9