Skip to content
| Marketplace
Sign in
Visual Studio>Tools>NsDepCop - Code dependency checker tool for C#
NsDepCop - Code dependency checker tool for C#

NsDepCop - Code dependency checker tool for C#

Codartis

|
2,183 installs
| (0) | Free
Static code analysis tool that helps to enforce namespace and type dependency rules in C# projects by highlighting disallowed type usages in the code editor. You can also use this tool in your build process by adding the NsDepCop NuGet package to your projects.
Download

NsDepCop is a static code analysis tool that helps you to enforce namespace dependency rules in your C# projects.

  • No more unplanned or unnoticed dependencies in your system.
  • What is this dependency control anyway?

News

This extension is no longer needed if using Visual Studio 2019 v16.10.0+ and NsDepCop v2.0.0+.

Use the NuGet package that works both at build time and in the code editor too.

Getting Started

  1. Add the NsDepCop NuGet package to your C# projects.
  2. Add a file called config.nsdepcop. Edit it and describe dependency rules.
  3. When you build the project, dependency violations will be reported in the build output just like compiler errors/warnings.

See the Help for details.

Config XML schema support: VSIX package

Versions

  • See the Change Log for version history.

Feedback

  • Please use the Issue Tracker to record bugs and feature requests.
  • Or find me on twitter Follow on Titter

More Info

  • Diagnostics Reference
  • Troubleshooting
  • How to contribute?

Thanks to

  • Roslyn for the best parser API.
  • ReSharper for the free licence of this amazing tool.
  • DotNet.Glob for the globbing library.

License

  • GPL-2.0
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft