ReferenceCopAnalyzer 0.2.0
See the version list below for details.
dotnet add package ReferenceCopAnalyzer --version 0.2.0
NuGet\Install-Package ReferenceCopAnalyzer -Version 0.2.0
<PackageReference Include="ReferenceCopAnalyzer" Version="0.2.0" />
paket add ReferenceCopAnalyzer --version 0.2.0
#r "nuget: ReferenceCopAnalyzer, 0.2.0"
// Install ReferenceCopAnalyzer as a Cake Addin #addin nuget:?package=ReferenceCopAnalyzer&version=0.2.0 // Install ReferenceCopAnalyzer as a Cake Tool #tool nuget:?package=ReferenceCopAnalyzer&version=0.2.0
ReferenceCopAnalyzer
Analyzer that checks references from code to different namespaces in .NET, based on your own rules
About
If you are working on a code base with multiple developers and you have some ideas about how dependencies must flow, it is a good idea to translate those ideas to a set of rules. But checking those rules manually when changes are made can be cumbersome and error-prone.
ReferenceCopAnalyzer allows you to define those rules in a separate file and will report anything in your code that violates the rules. It uses a code analyzer, which runs as part of the compilation process. That makes it easy to install, fast and well-integrated into your development tooling (IDE). Also, it requires no extra effort to setup in your CI build.
This project is heavily inspired by NsDepCop, but a bit easier to use and it supports .NET Core (and .NET 5+).
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- Microsoft.CodeAnalysis.CSharp (>= 3.9.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.