Skip to content
A tool that help you find transitive package references.
C#
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Add test for skip command Nov 6, 2019
.editorconfig
.gitignore Initial commit Oct 25, 2019
LICENSE Add license Oct 30, 2019
README.md
build.cake Add integration tests Oct 30, 2019

README.md

Snitch

A tool that help you find transitive package references that can be removed.

Example

> snitch Foo.csproj --tfm net462

Building Foo (net462)...
Building Bar (netstandard2.0)...
Building Baz (netstandard2.0)...

The following packages can be removed:

   Autofac (ref by Baz)
   Newtonsoft.Json (ref by Bar)

The following packages might be removed:

   Castle.Core (ref by Baz)
      4.4.0 <- 4.3.1 (Baz)

Installation

> dotnet tool install -g snitch

Usage

Examine a specific project using the first built target framework.

> snitch MyProject.csproj

Examine a specific project using a specific target framework moniker.

> snitch MyProject.csproj --tfm net462

Examine a specific project using a specific target framework moniker and return exit code 0 only if there was no transitive package collisions. Useful for continuous integration.

> snitch MyProject.csproj --tfm net462 --strict

Examine a specific project using a specific target framework moniker and make sure that the packages Foo and Bar are excluded from the result.

> snitch MyProject.csproj --tfm net462 --exclude Foo --exclude Bar

Examine a specific project using a specific target framework moniker and exclude the project OtherProject from analysis.

> snitch MyProject.csproj --tfm net462 --skip OtherProject

Building Snitch from source

To build and run the tests, you will need Cake installed as a dotnet tool on your computer.

> dotnet tool install cake.tool -g

When Cake is installed you can build the solution (and run all tests) by calling it from the repository root.

> dotnet cake
You can’t perform that action at this time.