Tutorial: Enable continuous integration (csharp)

Add Coverlet to the project

First add Coverlet package (named coverlet.msbuild) to your project. This will enable the Code Coverage report to show in your build pipeline.

  1. In Visual Studio, open your project that needs the Coverlet package.

  2. Go to Tools > NuGet Package Manager > Manage NuGet Packages for Solution…** Manage NuGet Packages for Solution

  3. Select Browse and search for Coverlet, installing the coverlet.msbuild package to your project. Add NuGet Package

  4. Build the solution and Coverlet will be added as a dependency in the project