diff --git a/README.md b/README.md index 7a96285..4aa495f 100644 --- a/README.md +++ b/README.md @@ -145,6 +145,7 @@ reported a the [GibHub repository](https://github.com/dotnet-project-file-analyz ### Other * [**Proj1100** Avoid using Moq](rules/Proj1100.md) * [**Proj1101** Package references should have stable versions](rules/Proj1101.md) +* [**Proj1102** Use Coverlet Collector or MSBuild](rules/Proj1102.md) * [**Proj1200** Exclude private assets as project file dependency](rules/Proj1200.md) ## Resource file rules diff --git a/rules/Proj1102.md b/rules/Proj1102.md new file mode 100644 index 0000000..ef6a5ba --- /dev/null +++ b/rules/Proj1102.md @@ -0,0 +1,58 @@ +--- +parent: Other +ancestor: MSBuild +--- + +# Proj1102: Use Coverlet Collector or MSBuild +[Coverlet](https://github.com/coverlet-coverage/coverlet) is a cross-platform +code coverage framework for .NET, with support for line, branch and method +coverage. The packages `coverlet.collector` and `coverlet.msbuild` have the +same purpose but should not be used together. Note that `coverlet.collector` is +preferred over the `coverlet.msbuild`. + +## Non-compliant +``` xml + + + + net8.0 + + + + + + + + +``` + +## Compliant +``` xml + + + + net8.0 + + + + + + + +``` + +or + +``` xml + + + + net8.0 + + + + + + + +``` \ No newline at end of file