title: Sonarqube StyleCop analysis for c# multi-module project using Maven aggregator from Jenkins
body: <p>I have a C# multimodule project that I want to run SonarQube analysis on. This project is built using Maven via an aggregator pom file. The sonar analysis works just fine, the modules are found and the sonar analysis completes. However, I don't see any StyleCop violation. For example</p>
  
  <pre><code>[INFO] [14:41:01.053] Sensor org.sonar.plugins.stylecop.StyleCopSensor@1d5df31...
  [INFO] [14:41:01.148] Microsoft (R) Build Engine version 4.0.30319.18408
  [INFO] [14:41:01.149] [Microsoft .NET Framework, version 4.0.30319.18444]
  [INFO] [14:41:01.149] Copyright (C) Microsoft Corporation. All rights reserved.
  [INFO] [14:41:01.149] 
  [INFO] [14:41:01.189] Build started 21/11/2014 14:41:01.
  [INFO] [14:41:01.410] Project "C:\Jenkins\workspace\xxx\xxx\trunk\src\target\sonar\StyleCop-msbuild.proj" on node 1 (default targets).
  [INFO] [14:41:01.411] StyleCopLaunch:
  [INFO] [14:41:01.411]   No violations encountered
  [INFO] [14:41:01.416] Done Building Project "C:\Jenkins\workspace\xxx\xxx\trunk\src\target\sonar\StyleCop-msbuild.proj" (default targets).
  [INFO] [14:41:01.421] 
  [INFO] [14:41:01.421] Build succeeded.
  [INFO] [14:41:01.421]     0 Warning(s)
  [INFO] [14:41:01.421]     0 Error(s)
  [INFO] [14:41:01.422] 
  [INFO] [14:41:01.422] Time Elapsed 00:00:00.24
  [INFO] [14:41:01.662] Sensor org.sonar.plugins.stylecop.StyleCopSensor@1d5df31 done: 609 ms
  </code></pre>
  
  <p>If I run the each module individually in a different Jenkins job, I see all the violations, including StyleCop ones, so the problem comes when I use the aggregator pom. I am using the following plugins in SonarQube</p>
  
  <ul>
  <li>C# 3.3</li>
  <li>Analysis Bootstrapper for Visual Studio Projects 1.2</li>
  </ul>
  
  <p>The sonar properties are</p>
  
  <pre><code>sonar.sourceEncoding=UTF-8
  sonar.visualstudio.enable=true
  sonar.exclusions=**/Reference.cs,**/*.designer.cs,**/*.Designer.cs,**/*.g.cs,**/target/**
  sonar.stylecop.projectFilePath=trunk/src/
  </code></pre>
  
  <p>I am force to specify <code>projectFilePath</code> because if I don't the analysis just fails. With <em>Bootstrapper</em> enabled I would think the project files are detected automatically. Is there another way to specify the <code>projectFilePath</code> for each module? They all are under the same folder structure <code>trunk/src/</code>. </p>
  
  <p>I have also tried defining the modules separately as it is done <a href="https://github.com/SonarSource/sonar-examples/blob/b22bcd7fc29e01a2cc402eb9e14aef22443d8a81/projects/languages/csharp/sonar-project-without-visual-studio-bootstrapper.properties" rel="nofollow">here</a> with no luck. I've been trying to achieve this for two day and I don't know what else to try.</p>
  
  <p>Any help would be really appreciated!</p>