example-csharp

(β˜… 120)

Codecov: C# example repository

  • .gitattributes
  • .gitignore
  • appveyor.yml
  • CodecovProject.sln
  • LICENSE
  • README.md

# Installation Guide

1. Get the code
git clone https://github.com/codecov/example-csharp

Downloads the entire project code from GitHub to your computer.

cd example-csharp

Moves into the project folder you just downloaded.

2. Official Install Script

Easy Recommended
Prerequisites
choco install opencover.portable

Installs directly via Chocolatey (Windows).

choco install xunit

Installs directly via Chocolatey (Windows).

choco install dotnetcore-sdk

Installs directly via Chocolatey (Windows).

βœ… After installing, open a new terminal and run the program's version command (e.g. --version) to confirm it worked.

Pulled directly from this repo's README.

3. .NET

Medium
Prerequisites
  • Git Needed to download the project code from GitHub.
  • .NET SDK The SDK required for the dotnet command.
OpenCover.Console.exe -register:user -target:"C:/Program Files/dotnet/dotnet.exe" -targetargs:test -filter:"+[UnitTestTargetProject*]* -[MyUnitTests*]*" -output:".\MyProject_coverage.xml" -oldstyle

Type this command into your terminal and run it.

βœ… After dotnet run, check the message or address shown in the terminal.

Pulled directly from this repo's README.

// repository documentation