realvizu / NsDepCop

NsDepCop is a static code analysis tool that helps to enforce namespace dependency rules in C# projects. No more unplanned or unnoticed dependencies in your system.
GNU General Public License v2.0
199 stars 32 forks source link
csharp dependencies dependency-analysis dotnet msbuild namespace nuget static-code-analysis visual-studio-extension

NsDepCop - Namespace Dependency Checker Tool for C

Build Status

NsDepCop is a static code analysis tool that enforces dependency rules in C# projects, based on namespaces.

What is this dependency control anyway? And why should you automate it?

Getting Started

  1. Add the NsDepCop NuGet package to your C# projects: NuGet Package
  2. Add a text file named 'config.nsdepcop' to your project, then edit it to define your dependency rules.
  3. Dependency violations will be underlined in the code editor and reported at build time just like compiler errors/warnings.

See the Help for details.

Or check out this step-by-step tutorial video by plainionist.

Versions

Feedback

More Info

Thanks to

License

Other Tools