ReferenceCopAnalyzer 0.2.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package ReferenceCopAnalyzer --version 0.2.0
NuGet\Install-Package ReferenceCopAnalyzer -Version 0.2.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<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
#r "nuget: ReferenceCopAnalyzer, 0.2.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. 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

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.3.0 4,319 9/4/2022
0.2.0 21,539 5/16/2021
0.1.8 288 5/16/2021
0.1.7 367 5/15/2021
0.1.6 324 5/15/2021
0.1.5 293 5/15/2021
0.1.4 404 5/15/2021