How to publish code coverage with a simple XML

Herrera, Bulmaro 1 Reputation point

I am using the pipelines to automate build & test. One of my coverage tools generates this basic XML file with content:

<?xml version="1.0" encoding="utf-8"?>
<Root ReportType="SummaryXML" DotCoverVersion="2020.3.3">
    <Statements Covered="16986" Total="204022" Percent="8.3" />
    <Classes Covered="659" Total="3015" Percent="21.9" />
    <Methods Covered="5313" Total="47318" Percent="11.2" />

and I want to publish it as code coverage.
But the ReportGenerator responds with:

The dotCover report does not contain line coverage data. Use the dotCover command line parameter '/ReportType=DetailedXML' to capture line coverage.

How can I generate a basic, simple report from this XML?

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
23,929 questions
{count} votes