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.
C# Other
Clone or download
Permalink
Failed to load latest commit information.
doc
images
perftest
source
.gitignore
CHANGELOG.md
Contribute.md
LICENSE
README.md
appveyor.yml

README.md

NsDepCop - Namespace Dependency Checker Tool for C#

Build Status

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

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

What is this dependency control anyway?

Getting Started

  1. Add the NsDepCop NuGet package to your C# projects: NuGet Package
    • If you have v1.7.0 then you should update to v1.7.1 because that's much faster.
  2. A file called config.nsdepcop is automatically added to your project. 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.

Optional Stuff

  • Install the VSIX (Visual Studio Extension) to get instant dependency check while editing the code.

    • For Visual Studio 2017: Visual Studio extension
    • For Visual Studio 2015: Visual Studio extension
  • Install the NsDepCop Config XML Schema Support for Visual Studio to get validation and IntelliSense while editing the config.nsdepcop files.

    • For Visual Studio 2017: Visual Studio extension
    • For Visual Studio 2015: see the instructions in Help.

Versions

Feedback

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

More Info

Thanks to

  • Roslyn for the best parser API.
  • ReSharper for the free licence of this amazing tool.

License