NsDepCop 3.3.0
dotnet add package NsDepCop --version 3.3.0
NuGet\Install-Package NsDepCop -Version 3.3.0
<PackageReference Include="NsDepCop" Version="3.3.0"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
<PackageVersion Include="NsDepCop" Version="3.3.0" />
<PackageReference Include="NsDepCop"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
paket add NsDepCop --version 3.3.0
#r "nuget: NsDepCop, 3.3.0"
#:package NsDepCop@3.3.0
#addin nuget:?package=NsDepCop&version=3.3.0
#tool nuget:?package=NsDepCop&version=3.3.0
NsDepCop is a static code analysis tool that enforces namespace and assembly dependency rules in C# projects.
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories (3)
Showing the top 3 popular GitHub repositories that depend on NsDepCop:
| Repository | Stars |
|---|---|
|
ardalis/CleanArchitecture
Clean Architecture Solution Template: A proven Clean Architecture Template for ASP.NET Core 10
|
|
|
realvizu/QuickDiagram
Code visualization tool for C# to quickly explore, navigate and document source code structure and relationships. Integrates into Visual Studio.
|
|
|
ardalis/RiverBooks
Modular Monolith sample for Dometrain
|
| Version | Downloads | Last Updated |
|---|---|---|
| 3.3.0 | 941 | 11/1/2026 |
| 3.2.0 | 25,929 | 10/4/2026 |
| 3.1.0 | 149,885 | 7/20/2026 |
| 3.0.0 | 24,795 | 6/19/2026 |
| 2.7.0 | 453,926 | 12/7/2025 |
| 2.6.0 | 469,557 | 4/5/2025 |
| 2.5.0 | 283,713 | 1/3/2025 |
| 2.4.0 | 207,287 | 9/14/2024 |
| 2.3.0 | 720,320 | 7/11/2023 |
| 2.2.0 | 325,631 | 9/18/2022 |
| 2.1.0 | 4,433 | 7/10/2022 |
| 2.0.1 | 77,903 | 3/12/2022 |
| 2.0.0 | 439,251 | 6/13/2021 |
| 2.0.0-rc1 | 670 | 5/24/2021 |
- Fix: statically imported fields, constants, properties and events did not produce a dependency on their declaring type (#93).
- Fix: a statically imported member whose type is its own declaring type was reported twice.
- Note: dependencies that went undetected before are now reported, so existing builds can get new NSDEPCOP01 diagnostics.