SkillAgentSearch skills...

NsDepCop

NsDepCop is a static code analysis tool that enforces namespace and assembly dependency rules in C# projects.

Install / Use

/learn @realvizu/NsDepCop

README

NsDepCop - Namespace and Assembly Dependency Checker Tool for C#

NsDepCop is a static code analysis tool that enforces namespace and assembly dependency rules in C# projects.

  • It runs as part of the build process and reports any dependency problems.
  • No more unplanned or unnoticed dependencies in your system.

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

View on GitHub
GitHub Stars281
CategoryDevelopment
Updated6d ago
Forks36

Languages

C#

Security Score

100/100

Audited on Mar 30, 2026

No findings