Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Your C# code base must be developed with Visual Studio, and thus must contain a ".sln" file (.NET Solution).
  • If you want test metrics, unit tests must be isolated from the main code base in dedicated Visual Studio Projects. Also the test framework must be compatible with Gallio.
  • Supported versions are:

    C# language

    Up to 45.0

    .NET framework

    2.0, 3.5, 4.0 and 4.05

    Silverlight

    3, 4 and 45

    Visual Studio

    Tested with VS 2008, VS 2010 and VS 2010 2012 ".sln" files.
    Older versions may also be supported (feel free to give feedback)

Installing the C# Ecosystem Plugins

  1. Download the zip archive that contains the latest version of the C# Ecosystem plugins and unzip it
  2. Copy the plugins you need into the SONAR_HOME/extensions/plugins directoryInstall the .NET and C# plugins from the Update Center
    • Prior to Sonar 3.5: you need to click on the "Install" button of all the 7 plugins
    • Since Sonar 3.5: you just need to click on the "Install" button of the C# group, this will install everything including the .NET plugins
  3. Restart the Sonar server

Installing the External Tools

...

Tool

Install required if plugin selected?

Web site / download / install guide

Supported versions (Tested one in bold)

FxCop

YES

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.
OpenCover is preferred to PartCover.
You need .NET 4 installed on your build machine in order to use OpenCover.

https://github.com/sawilde/opencover

1.0.X, 2.0.X (2, 4.0.X (4.0.81118)

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 

...