Skip to end of metadata
Go to start of metadata

The use of the latest analyzer version (SonarC# or SonarVB) compatible with your SonarQube server is recommended.


With the SonarQube C# and Visual Basic .NET plugins

SonarScanner for MSBuild

SonarC#4.5+4.5+4.5+4.5+4.5+4.5+[4.5 - 6.6]6.7+
SonarVB2.4+2.4+3.0+3.0+3.0+3.0+[3.0 - 4.1]4.2+


Analyzing MSBuild 12 projects with MSBuild 14

The Sonar Scanner for MSBuild requires your project to be built with MSBuild 14.0. We recommend installing Visual Studio 2015 update 3 or later on the analysis machine in order to benefit from the integration and features provided with the Visual Studio ecosystem (VSTest, MSTest unit tests, etc.).

Projects targeting older versions of the .NET Framework can be built using MSBuild 14.0 by setting the "TargetFrameworkVersion" MSBuild property as documented by Microsoft:

If you do not want to switch your production build to MSBuild 14.0, you can set up a separate build dedicated to the SonarQube analysis.

Analyzing Projects built with MSBuild 12

As of release 3.0, analyzing projects built with MSBuild 12 is no longer supported.

  • No labels