diff --git a/Directory.Build.targets b/Directory.Build.targets
index 5a4214fc7d..713024d841 100644
--- a/Directory.Build.targets
+++ b/Directory.Build.targets
@@ -16,19 +16,49 @@
HTML
$(ReportGeneratorReportTypes);MarkdownSummaryGitHub
$([System.IO.Path]::Combine($(ArtifactsPath), 'coverage'))
+ $([System.IO.Path]::Combine($(ReportGeneratorTargetDirectory), 'SummaryGithub.md'))
$([System.IO.Path]::Combine($(ReportGeneratorTargetDirectory), 'coverage.json'))
+
+
+
+
+
+
+ ();
+ foreach (var line in Lines)
+ {
+ lines.Add(line.ItemSpec);
+ }
+ int attempt = 0;
+ while (attempt < 3)
+ {
+ try
+ {
+ System.IO.File.AppendAllLines(File, lines);
+ break;
+ }
+ catch (System.IO.IOException)
+ {
+ attempt++;
+ System.Threading.Thread.Sleep(1_000);
+ }
+ }
+ ]]>
+
+
-
- <_ReportSummaryContent><details><summary>:chart_with_upwards_trend: <b>$(AssemblyName) Code Coverage report</b></summary>
+
+ <_ReportSummaryContent><details><summary>:chart_with_upwards_trend: <b>$(AssemblyName) Code Coverage report</b> %28$(TargetFramework)%29</summary>
<_ReportSummaryContent>$(_ReportSummaryContent)$([System.Environment]::NewLine)
<_ReportSummaryContent>$(_ReportSummaryContent)$([System.Environment]::NewLine)
- <_ReportSummaryContent>$(_ReportSummaryContent)$([System.IO.File]::ReadAllText('$([System.IO.Path]::Combine($(ReportGeneratorTargetDirectory), 'SummaryGithub.md'))'))
+ <_ReportSummaryContent>$(_ReportSummaryContent)$([System.IO.File]::ReadAllText('$(ReportGeneratorMarkdownSummary)'))
<_ReportSummaryContent>$(_ReportSummaryContent)$([System.Environment]::NewLine)
<_ReportSummaryContent>$(_ReportSummaryContent)$([System.Environment]::NewLine)
<_ReportSummaryContent>$(_ReportSummaryContent)</details>
-
+