Awesome
NsDepCop - Namespace Dependency Checker Tool for C#
NsDepCop is a static code analysis tool that enforces dependency rules in C# projects, based on namespaces.
- 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
- Add the NsDepCop NuGet package to your C# projects:
- Add a text file named 'config.nsdepcop' to your project, then edit it to define your dependency rules.
- 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
- See the Change Log for version history.
Feedback
- Use the Issue Tracker to submit bugs and feature requests.
- Use the Discussions forum for questions.
More Info
- Diagnostics Reference
- Configuring XML schema support for config.nsdepcop files
- Troubleshooting
- How to contribute?
Thanks to
- Roslyn for the amazing parser API.
- DotNet.Glob for the globbing library.
License
Other Tools
- Check out my other project: Codartis Diagram Tool, a code visualization tool for C#.