diff --git a/Tasks/PublishCodeCoverageResultsV1/publishcodecoverageresults.ts b/Tasks/PublishCodeCoverageResultsV1/publishcodecoverageresults.ts index bb0b0fd36d96..b4b595c176f2 100644 --- a/Tasks/PublishCodeCoverageResultsV1/publishcodecoverageresults.ts +++ b/Tasks/PublishCodeCoverageResultsV1/publishcodecoverageresults.ts @@ -175,7 +175,7 @@ async function generateHtmlReport(summaryFile: string, targetDir: string, pathTo dotnet = tl.tool(path.join(__dirname, 'net47', 'ReportGenerator.exe')); } else { dotnet = tl.tool(dotnetPath); - dotnet.arg(path.join(__dirname, 'netcoreapp2.0', 'ReportGenerator.dll')); + dotnet.arg(GetQuotesSurroundedPath(path.join(__dirname, 'netcoreapp2.0', 'ReportGenerator.dll'))); } dotnet.arg('-reports:' + GetQuotesSurroundedPath(summaryFile));