Skip to content

Commit 458b357

Browse files
committed
Fix WriteCoverageReportPathForGitHubActions MSBuild target
Was failing with this error: > Serilog.Formatting.Log4Net.Tests.csproj(50,21): error MSB4012: The expression "coverage-reports=@(CoverletReport, ',')" cannot be used in this context. Item lists cannot be concatenated with other strings where an item list is expected. Use a semicolon to separate multiple item lists.
1 parent 12615ce commit 458b357

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/Serilog.Formatting.Log4Net.Tests.csproj

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,11 @@
4646
</Target>
4747

4848
<Target Name="WriteCoverageReportPathForGitHubActions" AfterTargets="GenerateCoverageResultAfterTest" Condition="$(ContinuousIntegrationBuild) == 'true'">
49+
<PropertyGroup>
50+
<CoverageReports>@(CoverletReport, ',')</CoverageReports>
51+
</PropertyGroup>
4952
<ItemGroup>
50-
<GitHubOutput Include="coverage-reports=@(CoverletReport, ',')" />
53+
<GitHubOutput Include="coverage-reports=$(CoverageReports)" />
5154
</ItemGroup>
5255
<WriteLinesToFile File="$(GITHUB_OUTPUT)" Lines="@(GitHubOutput)" />
5356
</Target>

0 commit comments

Comments
 (0)