NsDepCop Versions Save

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.

v2.0.0

2 years ago

The big change in this version is that the implementation changed from MSBuild task + Visual Studio Extension to a standard Roslyn analyzer.

  • NsDepCop must be added to a project as a NuGet package.
  • Appears in Solution Explorer: project / Dependencies / Analyzers / NsDepCop.Analyzer
  • Issue severities can be configured that same way as other analyzers (use Visual Studio or .editorconfig files).
  • Works both at build time and inside Visual Studio editor.
  • Requires Visual Studio 2019 (16.10.0 or later).
  • Supports .NET Core / .NET 5 / etc. projects too.
  • Uses Roslyn 3.9.0.

Stuff that was removed:

  • No need for the NsDepCop Visual Studio Extension any more.
  • No need for the out-of-process service host any more.
  • Dropped support for VS 2015/2017. For those, use NsDepCop v1.11.0.
  • Config attributes no longer supported (ignored): CodeIssueKind, MaxIssueCountSeverity, InfoImportance, AnalyzerServiceCallRetryTimeSpans.

Other info:

  • AutoLowerMaxIssueCount feature is temporarily not supported.

v1.10.1

4 years ago
  • Fix: #51 - RemotingException when using different NsDepCop NuGet and VSIX version.

v1.10.0

5 years ago
  • New: Support Visual Studio 2019

v1.9.0

5 years ago
  • New: Support incremental build - don't run the tool if there was no change in the source/config files.
  • New: Global turn off switch - DisableNsDepCop environment variable.
  • New: Excluding files from analysis - ExcludedFiles attribute in config.nsdepcop.

v1.8.2

5 years ago
  • Fix: #43 (for real this time) - RemotingException when path contains space.

v1.8.1

5 years ago
  • Fix: #43 - RemotingException when path contains space.

v1.8.0

5 years ago
  • Fix: Enhancements in launching the out-of-process service host (configurable retry intervals, allow access for any user).
  • New: MaxIssueCountSeverity - enables breaking the build when a threshold number of dependency violations has been reached.
  • New: AutoLowerMaxIssueCount - automatically lower MaxIssueCount to encourage cleaning up dependency problems and prohibit introducing new ones.
  • New: Supports C# up to 7.3.
  • The Visual Studio Extension (VSIX) requires 15.7.4 or higher.

V1.7.1

6 years ago
  • Performance enhancement when run by MSBuild.
    • The analyzer keeps running in its own process to avoid repeated creation cost. Shuts down with parent process.

v1.7.0

6 years ago
  • New: C# 7 support.
  • New: Visual Studio 2017 support.
  • Removed: MSI installer.
    • Config XML schema support is now available as a Visual Studio Extension (only for VS2017).
    • Global MSBuild-integration is discontinued. Please use per-project MSBuild integration via the NuGet package.

v1.6.1

7 years ago
  • Fix: Type without a name caused exception in analyzer.