mcintyre321 / NsDepCop

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.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

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.

License:GNU General Public License v2.0


Languages

Language:C# 99.8%Language:Smalltalk 0.1%Language:Batchfile 0.1%