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 72 Next »

Table of Contents

The C# Ecosystem is a set of plugins:

  • Mandatory plugins:
    • .NET Core: defines API used by every other plugin of the ecosystem.
    • C# Core: parses C# code source, computes metrics, detects duplications, etc.
       
  • Optional plugins adding features from external tools:
    • .NET FxCop: runs FxCop to detect issues related to potential bugs, tight coupling, globalization, etc.
    • .NET Gendarme: runs Gendarme to detect issues related to coding bad practices, smell detection, performance, etc.
    • .NET Gallio: runs Gallio to execute unit/integration tests as well as code coverage tool (PartCover or OpenCover or NCover or ...).
    • .NET NDeps: runs a dependency parser tool, built on Mono Cecil, to get dependency data between assemblies and classes. 
    • C# StyleCop: runs StyleCop to detect issues mainly related to coding style (formatting, comments, ...).

Installing the C# Ecosystem

  1. Install the .NET and C# plugins from the Update Center or download them into the SONARQUBE_HOME/extensions/plugins directory
  2. Restart the SonarQube server

Installing the .NET SDK and Silverlight framework

To run analyses, the .NET SDK has to be installed. Depending on your projects, install the right version(s) of the .NET SDK on your . Then, log in as a System administrator and go to Settings > Configuration > General Settings > .NET and set the sonar.dotnet.X.Y.sdk.directory properties: absolute path to the .NET SDK X.Y installation director.

To run analyses on solutions containing Silverlight code, Silverlight has to be installed. Depending on your projects, install the right version(s) of Silverlight. Then, log in as a System administrator and go to Settings > Configuration > General Settings > .NET and set the sonar.silverlight.X.mscorlib.location properties: absolute path to the core assembly for Silverlight X framework.

Installing the External Tools

External tools have to be installed on the Windows boxes where analyses are performed. As it is recommended to install the SonarQube server and the client(s) on different machines, this means that you can run the SonarQube server on a Linux box and run the analyses on Windows boxes.

Tool

Install required if corresponding plugin is installed?

Website

Supported version (Tested one in bold)

FxCop

YES

Requires .NET SDK 4.0 to be installed.

http://www.infoq.com/news/2010/06/FXCop-10

1.36+ (10.0)

StyleCop

NO, StyleCop 4.7 binaries are embedded in the plugin.

http://stylecop.codeplex.com

4.6+ (4.7)

Gendarme

NO, Gendarme 2.10 binaries are embedded in the plugin.

http://www.mono-project.com/Gendarme

2.10+ (2.10)

Gallio

YES

http://www.gallio.org

3.1 Update 2 + (3.2.3)

PartCover

YES if you want to use PartCover as the coverage engine.
Since PartCover is no longer maintained, OpenCover is preferred.

https://github.com/sawilde/partcover.net4
(click on the "Downloads" button)

2.2, 2.3 and 4.0 (4.0)

NCover

YES if you want to use NCover as the coverage engine

http://www.ncover.com

3.0 (3.0)
Version 4 is currently not supported. 

OpenCover

YES if you want to use OpenCover as the coverage engine.

Requires .NET SDK 4.0 to be installed.

https://github.com/sawilde/opencover

1.0.X, 2.0.X, 4.0.X (4.0.1118)

JetBrains dotCoverYES if you want to use dotCover as the coverage engine.http://www.jetbrains.com/dotcover/1.X, 2.X (1.2 & 2.0)
NDepsNO, binaries are embedded in the plugin.https://github.com/grozeille/DependencyParser 
  • No labels