Skip to content

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.

License

pombredanne/NsDepCop

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
  2. Add a file called config.nsdepcop. Edit it and describe dependency rules.
    • For projects that use the old packages.config nuget format the file is automatically added.
  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/2019: 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/2019: 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 find me on twitter Follow on Titter

More Info

Thanks to

License

About

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.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 99.7%
  • Other 0.3%