Sonarqube中缺少Dotcover的覆盖率结果

Sonarqube中缺少Dotcover的覆盖率结果,sonarqube,code-coverage,dotcover,sonarqube-msbuild-runner,Sonarqube,Code Coverage,Dotcover,Sonarqube Msbuild Runner,我能够在DotCover的帮助下生成HTML报告,并使用“/d:sonar.cs.DotCover.ReportsPath=。\DotCover\dotCoverResults.HTML”(DotCover HTML中包含覆盖率数据)将其传递给Sonarqube。在Sonar日志中,我没有看到任何错误消息,但Sonar仪表板显示没有覆盖范围;它是空白的。另一个应用程序的类似配置在另一个应用程序中工作得非常好,但在本应用程序中却不行。Blow是Jenkins中为此使用的配置 Sonarqube版本

我能够在DotCover的帮助下生成HTML报告,并使用“/d:sonar.cs.DotCover.ReportsPath=。\DotCover\dotCoverResults.HTML”(DotCover HTML中包含覆盖率数据)将其传递给Sonarqube。在Sonar日志中,我没有看到任何错误消息,但Sonar仪表板显示没有覆盖范围;它是空白的。另一个应用程序的类似配置在另一个应用程序中工作得非常好,但在本应用程序中却不行。Blow是Jenkins中为此使用的配置

Sonarqube版本:4.5.7 MSBuild SonarQube运行程序:2.0 C#:5.2


非常感谢您的帮助。

Hi@Coc,我也得到了同样的帮助。如果你能解决这个问题,那就太好了。
dotnet restore --configfile .\.nuget\NuGet.Config
MSBuild myApplication.sln /t:Clean /t:Rebuild /p:Configuration=Debug /p:Platform=x64
nunit3-console.exe test\UnitTests\bin\Debug\net461\UnitTests.dll --result=nunit-test-results.xml;format=nunit2 --labels=On
dotCover.exe analyse .\dotCover\coverageDebug.xml