https://github.com/realvizu/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.
https://github.com/realvizu/NsDepCop
csharp dependencies dependency-analysis dotnet msbuild namespace nuget static-code-analysis visual-studio-extension
Last synced: about 1 month ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/realvizu/NsDepCop
- Owner: realvizu
- License: gpl-2.0
- Created: 2016-07-21T06:01:11.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2024-09-14T14:57:27.000Z (7 months ago)
- Last Synced: 2024-09-15T15:13:33.618Z (7 months ago)
- Topics: csharp, dependencies, dependency-analysis, dotnet, msbuild, namespace, nuget, static-code-analysis, visual-studio-extension
- Language: C#
- Homepage:
- Size: 16.6 MB
- Stars: 193
- Watchers: 13
- Forks: 30
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-csharp - NsDepCop - Static code analysis tool to enforce namespace dependency rules in C# projects. (Code Analysis and Metrics)
- awesome-dotnet-cn - NsDepCop - C#项目中用于强化命名空间依赖规则的静态代码分析工具。 (代码分析和度量)
- awesome-dotnet - NsDepCop - Static code analysis tool to enforce namespace dependency rules in C# projects. (Code Analysis and Metrics)
- awesome-dotnet - NsDepCop - Static code analysis tool to enforce namespace dependency rules in C# projects. (Code Analysis and Metrics)
- awesome-dot-dev - NsDepCop - Static code analysis tool to enforce namespace dependency rules in C# projects. (Code Analysis and Metrics)
- awsome-dotnet - NsDepCop - Static code analysis tool to enforce namespace dependency rules in C# projects. (Code Analysis and Metrics)
- awesome-dotnet - NsDepCop - Static code analysis tool to enforce namespace dependency rules in C# projects. (Code Analysis and Metrics)
README
# NsDepCop - Namespace and Assembly Dependency Checker Tool for C# #
[](https://ci.appveyor.com/project/realvizu/nsdepcop)
NsDepCop is a static code analysis tool that enforces namespace and assembly dependency rules in C# projects.
* 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**](doc/DependencyControl.md) anyway? And [**why should you automate it**](https://www.plainionist.net/Dependency-Governance-DotNet/)?
## Getting Started
1. Add the [**NsDepCop NuGet package**](https://nuget.org/packages/NsDepCop) to your C# projects: [](https://nuget.org/packages/NsDepCop)
1. Add a text file named **'config.nsdepcop'** to your project, then edit it to define your [**dependency rules**](doc/Help.md#dependency-rules).
1. Dependency violations will be underlined in the code editor and reported at build time just like compiler errors/warnings.See the [**Help**](doc/Help.md) for details.
Or check out this step-by-step [**tutorial video**](https://www.youtube.com/watch?v=rkU7Hx20Dc0) by [plainionist](https://github.com/plainionist).
## Versions
* See the [**Change Log**](CHANGELOG.md) for version history.## Feedback
* Use the [**Issue Tracker**](https://github.com/realvizu/NsDepCop/issues) to submit bugs and feature requests.
* Use the [**Discussions forum**](https://github.com/realvizu/NsDepCop/discussions) for questions.## More Info
* [Diagnostics Reference](doc/Diagnostics.md)
* [Configuring XML schema support for config.nsdepcop files](doc/Help.md#config-xml-schema-support-in-visual-studio)
* [Troubleshooting](doc/Troubleshooting.md)
* [How to contribute?](Contribute.md)## Thanks to
* [Roslyn](https://github.com/dotnet/roslyn) for the amazing parser API.
* [DotNet.Glob](https://github.com/dazinator/DotNet.Glob) for the globbing library.## License
* [GPL-2.0](LICENSE)## Other Tools
* Check out my other project: [Codartis Diagram Tool](https://codartis.com/), a code visualization tool for C#.