title: sonar issue auto closed and reopen
body: <p>Here is the context, I use </p>
  
  <ol>
  <li>Sonar 5.6.1</li>
  <li>C# plugin 5.4.0.464</li>
  <li>StyleCop plugin 1.1</li>
  </ol>
  
  <p>We have <strong>many issues that are automatically closed and reopen</strong> during a Sonar analysis. This problem arrive even if the analyzed file has not been modified. </p>
  
  <p>In each of the following case I check, the result is "issues are closed, reopen, and reassigned to the previous developer":</p>
  
  <ol>
  <li>Unassigned or assigned manually </li>
  <li>Tag/Untag issues</li>
  <li>Remove Sonar project </li>
  </ol>
  
  <p>Please can you help us? </p>
  
  <p>Note: I have already seen this post <a href="https://stackoverflow.com/questions/35574738/issues-auto-closed-and-re-open">Issues (auto) closed and re-open</a>, there is no answer and i <strong>use a different version of sonar and C# plugin</strong> </p>
  
  <h2>EDIT</h2>
  
  <p>I have just upgrade the solution and the bug is always here. Here is my configuration:</p>
  
  <ul>
  <li>Sonar 5.6.6</li>
  <li>C# plugin 5.7.0.612</li>
  <li>StyleCop plugin removed (because obsolete)</li>
  <li>sonar-scanner-msbuild-2.2.0.24</li>
  </ul>
  
  <p>After project analysis, if an issue exists, then the analysis close and reopen the issue. You can see the following example: </p>
  
  <p>1> sonar project task history:
  <a href="https://i.stack.imgur.com/2oLh0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2oLh0.png" alt="enter image description here"></a></p>
  
  <p>2> initial issue creation and closed:
  <a href="https://i.stack.imgur.com/zYVl8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zYVl8.png" alt="enter image description here"></a></p>
  
  <p>3> issue reopened and reclosed:
  <a href="https://i.stack.imgur.com/auwre.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/auwre.png" alt="enter image description here"></a></p>
  
  <p>4> issue reopened:
  <a href="https://i.stack.imgur.com/RpPIc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RpPIc.png" alt="enter image description here"></a></p>
  
  <h2>EDIT 2</h2>
  
  <p>There's a bug during the sonar scanner: <strong>sometimes projects in the solution aren't analysed.</strong> </p>
  
  <p>Here are the parameters for the both build sonar step: </p>
  
  <p>begin /k:"toto:FrontWebCore_Dev" /n:"FrontWebCore Dev" /v:1.0 /d:sonar.host.url=<a href="http://sonar:9000/" rel="nofollow noreferrer">http://sonar:9000/</a> /d:sonar.scm.provider=tfvc </p>
  
  <p>1> first build only 4 projects analysed...: </p>
  
  <p><a href="https://i.stack.imgur.com/seSyQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/seSyQ.png" alt="enter image description here"></a></p>
  
  <p>2> second build all 15 projects are analysed: </p>
  
  <p><a href="https://i.stack.imgur.com/j9c7D.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/j9c7D.png" alt="enter image description here"></a></p>