Sonarqube error when importing visualstudio.coveragexml file

Template for a good bug report, formatted with Markdown:

  • versions used (SonarQube, Scanner, Plugin, and any relevant extension)
    SonarQube - 7.6
    Scanner - sonar-scanner-msbuild-4.5.0.1761-net46
    Plugin - sonar-csharp-plugin-7.10.0.7896
    Code Coverage File generated by - Visual Studio 2017

  • error observed (wrap logs/code around triple quote ``` for proper formatting)


I have opened the file VisualStudio.coveragexml in Notepad and in a browser and it shows as a valid XML file.

Getting the error:
ERROR: Error during SonarQube Scanner execution
ERROR: Error while parsing the XML file: C:\Users\rv68115\Source\Workspaces\SSE.
ESIT\Dev\P0113 - Tender Manager\V1.1\VisualStudio.coveragexml
INFO: ------------------------------------------------------------------------
The SonarQube Scanner did not complete successfully
10:21:28.283 Creating a summary markdown file…
10:21:28.289 Post-processing failed. Exit code: 1```


* steps to reproduce
Run the scripts of Visual Studio Code Coverage in the order suggested in:
https://docs.sonarqube.org/pages/viewpage.action?pageId=6389770#CodeCoverageResultsImport(C#,VB.NET)-VisualStudioCodeCoverage


* potential workaround
I have changed the encoding of the file to be UTF-8.
I got the following error:
```ERROR: Error during SonarQube Scanner execution
ERROR: Missing root element in C:\Users\rv68115\Source\Workspaces\SSE.
ESIT\Dev\P0113 - Tender Manager\V1.1\VisualStudio.coveragexml at line 1
ERROR:
The SonarQube Scanner did not complete successfully
11:42:16.417 Creating a summary markdown file…
11:42:16.425 Post-processing failed. Exit code: 1```

P.S.: use the #bug:fault sub-category if you're hitting a specific crash/error , or the #bug:fp sub-category for rules-related behaviour