Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 34 Next »

By SonarSource – MIT – Issue TrackerSources
SonarQube Scanner for MSBuild 2.2 – Compatible with SonarQube 5.6+ (LTS)
Download

Table of Contents

Features

The SonarQube Scanner for MSBuild is the recommended way to launch a SonarQube analysis on MSBuild projects and solutions. It is the result of a collaboration between SonarSource and Microsoft

It is available both as a standalone command line executable and as build steps for Team Foundation Server or Jenkins.

Prerequisites

Compatibility

With the SonarQube C# and Visual Basic .NET plugins

SonarQube Scanner for MSBuild
0.9
1.0
1.0.1
1.0.2
1.12.02.12.2
SonarQube C# Plugin4.04.14.24.3+4.4+4.5+4.5+4.5+
SonarQube Visual Basic.NET PluginN/A2.42.42.4+2.4+2.4+2.4+3.0+

With Visual Studio and MSBuild

The SonarQube Scanner for MSBuild requires your project to be built with MSBuild 14.0. We recommend installing Visual Studio 2015 on the analysis machine in order to benefit from all integration and features that the Scanner provides with the Visual Studio ecosystem (VSTest, MSTest unit tests, FxCop 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.

If you need to run multiple analyses in rapid succession, pass /nodereuse:false to msbuild. Otherwise you may see the following error when the DLLs required by a new analysis are still locked by a previous analysis:

The End Step executable was not found 'D:\***\.sonarqube\bin\MSBuild.SonarQube.Internal.PostProcess.exe'. Please check that the begin step, the build step and the end step are all executed in the same directory.

Usage

Advanced Usage

不能呈现 {children}。 页面未找到: Advanced Usage。

 

Known Limitations

  • Analysis of BizTalk and SharePoint projects is currently not supported, refer to  SONARMSBRU-196 - Getting issue details... STATUS

  • Analysis of ASP.NET vNext projects (i.e. project.json) is not currently not supported, refer to  SONARMSBRU-167 - Getting issue details... STATUS
  • Analysis of Web Site Solutions is not supported, however analysis of Web Application Solutions is supported.

 

  • No labels