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?
- 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.
- See the Change Log for version history.
- Use the Issue Tracker to submit bugs and feature requests.
- Use the Discussions forum for questions.
- Diagnostics Reference
- Configuring XML schema support for config.nsdepcop files
- Troubleshooting
- How to contribute?
- Roslyn for the amazing parser API.
- DotNet.Glob for the globbing library.
- Check out my other project: Codartis Diagram Tool, a code visualization tool for C#.