ReferenceCopAnalyzer 0.2.0

Install-Package ReferenceCopAnalyzer -Version 0.2.0
dotnet add package ReferenceCopAnalyzer --version 0.2.0
<PackageReference Include="ReferenceCopAnalyzer" Version="0.2.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ReferenceCopAnalyzer --version 0.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ReferenceCopAnalyzer, 0.2.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// 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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

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+).

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.2.0 19,839 5/16/2021
0.1.8 142 5/16/2021
0.1.7 205 5/15/2021
0.1.6 166 5/15/2021
0.1.5 166 5/15/2021
0.1.4 221 5/15/2021