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

merge conflict using msbuild sonarquberunner

As a part of code quality we run svn update followed by msbuild.exe "project.sln" /t:Build /m:1 /clp:ErrorsOnly" and thereafter msbuild sonarqube runner. Few times I receive error mentioned below and upon investigating code checkout folder finds a…
SACn
  • 1,862
  • 1
  • 14
  • 29
0
votes
1 answer

FxCop warnings are thrown as errors by MSBuild. How do you change the errors back to warnings?

I have a huge C# project/solution with 30+ .csproj files/modules. When I try to do MSBuild FxCop warnings are thrown as errors. How do I disable warnings as error setting by modifying .sln file or as a MSBuild flag. FYI: I'm Trying to import FxCop…
Dhruvan Ganesh
  • 1,502
  • 1
  • 18
  • 30
0
votes
1 answer

Failed to execute Task error with msbuild step

I just installed the latest version of sonarqube on my server and did a test run on my project with the sonar-scanner executable. This works. In the next step, i'm creating a new VSTS Build Definition with the existing SonarQube build steps. When…
0
votes
1 answer

SonarQube MSBuild scanner ignore duplicate projects

Is there an option to ignore duplicate project GUIDs? Seems like the scanner hooks itself into the build process and creates a output project whenever a build is run on a c# project. Sometimes multiple builds are run, e.g. Silverlight, Portable…
yowl00
  • 181
  • 1
  • 7
0
votes
1 answer

Msbuild Sonarqube Runner with multiple build configurations

We are using TFS to build our projects and for analysis using Sonarqube Msbuild Runner however some of our project are bound to be builded in multiple configurations (Debug|Release) and apparently sonarqube msbuild runner doesn't support multiple…
Saeed
  • 56
  • 9
0
votes
1 answer

How do I add the deprecated Resharper plugin to sonar, manually?

The Resharper plugin 2.0 for sonar is marked as deprecated, but untill something new pops up, I would like to use it. Or at least testdrive it. The plugin is still available on the GitHub page https://github.com/SonarQubeCommunity/sonar-resharper…
LarsWA
  • 571
  • 5
  • 15
0
votes
1 answer

C# projects analyzed with MSBuild.SonarQube.Runner: SQ doesn't show source code with rule violations

I analyze C# projects using MSBuild.SonarQube.Runner-2.1: MSBuild.SonarQube.Runner.exe begin /k:"%SKEY%" /n:"%SNAME%" /v:"%SVERSION%" "c:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe" /t:Rebuild MSBuild.SonarQube.Runner.exe end The analysis…
andreasgk
  • 673
  • 1
  • 12
  • 30
0
votes
1 answer

SonarQube exclude auto generate files based on content

I am having a bit of an issue with excluding auto-generated files when using MSbuild runner. Each file that is auto generate has within. I have gone into sonarQube setting for project and set the "Ignore Issues on Files" to =…
0
votes
1 answer

I am trying to install SonarQube Scanner for MSBuild

I've successfully set up SonarQube and the C# plugin. I am running into trouble getting the Sonarqube Scanner to work. I've the following SonarQube.Analysis.xml
0
votes
1 answer

SonarQube msbuild runner does not import all fxcop messages

We use sonarqube and the sonarqube msbuild runner in our TFS vNext builds. The integration works: we see new analysis results in sonarqube as expected. However, not all issues from the CodeAnalysisLog.xml are imported in sonarqube. If we run the…
Michiel Overeem
  • 3,894
  • 2
  • 27
  • 39
0
votes
1 answer

MSBuild SonarQube Runner Proxy Authentication

When running MSBuild.SonarQube.Runner.exe (version 2.0), I receive the following error: SonarQube Scanner for MSBuild 2.0 Default properties file was found at C:\path-to-sonar\SonarQube.Analysis.xml Loading analysis properties from…
0
votes
1 answer

Which plugin installed this "SonarQube Scanner for MSBuild - Begin Analysis"

I see one Jenkins instance has this step and also "MSBuild SonarQube Runner" section in the system configuration, but another doesn't. I am trying to use Jenkins and SonarQube to analyse C# projects.
Jirong Hu
  • 2,315
  • 8
  • 40
  • 63
0
votes
1 answer

SonarQube: errors in analysing C# and VB projects

I am trying to follow the instructions here to try SonarQube for MSBuild: http://docs.sonarqube.org/display/SONAR/Analyzing+with+SonarQube+Scanner+for+MSBuild, but I got the following errors for C# and VB samples. I can't find any message in the…
Jirong Hu
  • 2,315
  • 8
  • 40
  • 63
0
votes
0 answers

Unable to run a basic Sonar analysis from MSBuild.SonarQube.Runner

I am sure I am missing something but unable to figure out what. The following commands are executed via the VS2015 command prompt. D:\Sonar\Project1\msbuild\MSBuild.SonarQube.Runner.exe begin /k:"FC" /n:"FC" /v:"1.0" msbuild.exe…
Hitesh
  • 21
  • 1
  • 4
0
votes
1 answer

Jenkins MSBuild SonarQube Runner 1.0.2 projectinfo.xml file not found

I'm having trouble running the sonarqube msbuild runner v1.0.2 in jenkins. The build runs fine, but the plugin doesn't seem to import the sonar targets correctly. Here's the logs when the sonar build kicks off: [workspace]…
1 2 3
8
9