Codecov.Tool 1.6.1

Suggested Alternatives


There is a newer version of this package available.
See the version list below for details.
dotnet tool install --global Codecov.Tool --version 1.6.1
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo
dotnet tool install --local Codecov.Tool --version 1.6.1
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Codecov.Tool&version=1.6.1
nuke :add-package Codecov.Tool --version 1.6.1

Codecov global executable uploader for .NET Framework/Core based builds. @codecov


Build status NuGet Chocolatey Gitter codecov

  1. This uploader supports Windows 7 (x64) and above, Linux (x64), and OS X (x64).

  2. The following Services are supported: AppVeyor, Azure Pipelines, TeamCity (see section on TeamCity), and Git.

  3. Many Codecov CLI options are supported. Run .\codecov.exe --help or see CommandLineOptions.cs for more details.

  4. On windows you can download the exe from NuGet or Chocolatey. There is also the .Net tool called Codecov.Tool which supports all platforms. As an alternative to NuGet or Chocolatey you can download the exe as the asset Codecov-{os}.zip under the release. The following PowerShell (version 5) commands might be helpful.

(New-Object System.Net.WebClient).DownloadFile("<url>", (Join-Path $pwd "")) # Download from github release.
Expand-Archive .\ -DestinationPath . # UnZip the file.
.\Codecov\codecov.exe # Run codecov.exe with whatever commands you need.

Quick Start

For a basic use case, in PowerShell run the following commands,

> choco install codecov
> .\codecov.exe -f <path to coverage report> -t <Codecov upload token>

For an AppVeyor build, the appveyor.yml file would look something like

- choco install codecov
# Note that, a Codecov upload token is not required.
- codecov -f <path to coverage report>

Cake Addin

If you use Cake (C# Make) for your builds, you may be intrested in the Cake.Codecov addin.


TeamCity does not automatically make build parameters available as environment variables. You will need to add the following environment parameters to the build configuration. To do this make sure your Branch specification under the VCS Root is configured correctly,

<p> <img src="./Images/branch-spec.png" width="1000em"/> </p>

Then set your environment variables,

<p> <img src="./Images/envs.png" width="1000em"/> </p>

Note that, the above environment variables (except for env.TEAMCITY_BUILD_URL) can alternatively be set via the command line,

env.TEAMCITY_BUILD_ID => --build

Questions and Contributions

All types of contributions are welcome! Feel free to open an issue or contact us through the gitter channel mentioning either @larzw or @AdmiringWorm.

Known Issues

  • Specifiyng file paths with spaces is currently not possible without a workaround. This is expected to be fixed when a new major release of codecov-exe is released (See issue #71 for possible workaround and tracking).


To create a relase, please do the following:

  • Push the latest changes to the master branch on github
  • Navigate to the release page and view the drafted release.
  • Make any necessary changes.
  • Publish the draft release on GitHub, targeting the master branch.
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.1 is compatible.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last updated
1.13.0 164,155 2/16/2021
1.12.4 7,758 1/12/2021
1.12.3 49,386 9/7/2020
1.12.2 2,240 8/17/2020
1.12.1 12,562 7/10/2020
1.12.0 1,602 6/23/2020
1.11.2 958 6/21/2020
1.11.1 39,174 6/10/2020
1.11.0 829 6/10/2020
1.10.0 58,801 2/1/2020
1.9.0 28,965 11/14/2019
1.8.0 6,135 10/31/2019
1.7.2 20,865 8/16/2019
1.7.1 1,188 8/2/2019
1.7.0 957 7/28/2019
1.6.1 1,130 7/16/2019
1.6.0 895 7/15/2019
1.5.0 116,911 5/5/2019
1.4.0 992 4/7/2019
1.3.0 1,004 2/28/2019
1.2.0 10,389 2/6/2019

All release notes for Codecov can be found on the GitHub site -