Skip to content

Commit faa3b7c

Browse files
committed
Use the new Codecov MSBuild task instead of the cli tool
1 parent 031633c commit faa3b7c

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

.config/dotnet-tools.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@
22
"version": 1,
33
"isRoot": true,
44
"tools": {
5-
"codecov.tool": {
6-
"version": "1.12.4",
7-
"commands": [
8-
"codecov"
9-
]
10-
},
115
"dotnet-validate": {
126
"version": "0.0.1-preview.62",
137
"commands": [

src/Serilog.Formatting.Log4Net.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
</ItemGroup>
5555

5656
<Target Name="ValidateNuGetPackage" AfterTargets="Pack">
57+
<!-- For reference: the file `.config/dotnet-tools.json` was created by running `dotnet new tool-manifest && dotnet tool install dotnet-validate` -->
5758
<Exec Command="dotnet tool restore" />
5859
<Exec Command="dotnet validate package local $([MSBuild]::EnsureTrailingSlash($(PackageOutputPath)))$(PackageId).$(PackageVersion).nupkg" />
5960
</Target>

tests/Serilog.Formatting.Log4Net.Tests.csproj

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
<ItemGroup>
1111
<PackageReference Include="ApprovalTests" Version="5.4.5" />
12+
<PackageReference Include="Codecov.MSBuild" Version="1.13.0" />
1213
<PackageReference Include="coverlet.msbuild" Version="3.0.2" PrivateAssets="all" />
1314
<PackageReference Include="FluentAssertions" Version="5.10.3" />
1415
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.8.3" />
@@ -42,9 +43,7 @@
4243
</Target>
4344

4445
<Target Name="UploadCoverageToCodecov" AfterTargets="GenerateCoverageResultAfterTest" Condition="$(ContinuousIntegrationBuild) == 'true'">
45-
<!-- For reference: the file `.config/dotnet-tools.json` was created by running `dotnet new tool-manifest && dotnet tool install Codecov.Tool` -->
46-
<Exec Command="dotnet tool restore" />
47-
<Exec Command="dotnet codecov --required --file &quot;@(CoverletReport, '&quot; &quot;')&quot;" />
46+
<Codecov ReportFiles="@(CoverletReport)" />
4847
</Target>
4948

5049
<ItemGroup>

0 commit comments

Comments
 (0)