Versions Compared


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


  1. Compile your solution. SonarQube's primary goal is to analyze source code, so everything has been made to work seamlessly after the compilation of a solution. In other words, if you have a build process that moves the assemblies and packages your application, it is definitely best to run SonarQube before (or in a separate process).

  2. Create a file and place it in the same folder as the solution file (.sln):

    Code Block
    sonar.projectName=My CSHARP Application
    # Info required for SonarQube
    sonar.sources=.   # Always set it this way even if this property is not used
    # To prevent any issues while analyzing multiple solutions containing projects with similar keys
    # Will be set by default to safe starting at version 2.2:
    # This property is set because it is required by the SonarQube Runner.
    # But it is not taken into account because the location of the source
    # code is retrieved from the .sln and .csproj files.

  3. Run the following command from the directory containing the file (= the directory containing the solution):

    Code Block