title: Can I run SonarQube code analysis for .NET Core (C#) on Linux?
body: <p>I'm trying to execute and report a <strong>SonarQube code analysis</strong> (without test coverage for now) against a <strong>.NET Core</strong> project from a <strong>Linux</strong> build agent.</p>
  
  <p>I downloaded <code>sonar-scanner</code> from <a href="https://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner" rel="nofollow noreferrer">this page</a>, and trying to run the report with the following command (the server url is set up in the configuration).</p>
  
  <pre><code>sonar-scanner -Dsonar.projectKey="MyProject" -Dsonar.projectName="MyProject" -Dsonar.sources=$PWD
  </code></pre>
  
  <p>The execution seems to be successful, I uploaded the full output to <a href="https://gist.github.com/markvincze/cb5b61d2e1fc32fa71e088592df32604" rel="nofollow noreferrer">this gist</a>.</p>
  
  <p>However, if I go to the project dashboard on the SonarQube site, I don't see any issues or code smells whatsoever.</p>
  
  <p><a href="https://i.stack.imgur.com/UUmuP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UUmuP.png" alt="enter image description here"></a></p>
  
  <p>I wanted to make sure that my project contains at least one error, so I added a <code>goto</code> statement to one of the source files, and checked if that warning is enabled in our Quality Profile, but I still get no issue.<br>
  (The sources files themselves are picked up correctly, I can see the list of files and all the source in SonarQube.)</p>
  
  <p>Am I doing something wrong, or is this not expected to work?</p>
  
  <p><em>(Just to clarify that this is not a duplicate of the existing question about .NET Core: the same command I showed here works for me on Windows, it only does not work on Linux.)</em></p>