Quantcast
Channel: WE MOVED to github.com/nuget. This site is not monitored!
Viewing all articles
Browse latest Browse all 7612

New Post: Find out all nuget pkgs not used by the project.

$
0
0

Should have a tool ready for this in the coming weeks.  Feel free to pitch in and help if you are interested.  There is a case for false positives, but on the whole the aim is to have it run in two modes:

  1. Audit and report, but no changes (this will probably be the first version out, and is pretty close to testable).
  2. Audit, report and fix.  This would give the option to remove unused references from the .csproj (based on runtime transitive or not), and remove unused packages from the packages.config.

We already have a tool we use for auditing an entire feed for package sanity which:

  1. Checks to ensure that all packaged assemblies have their manifest dependencies met by either
    1. Included assemblies
    2. Package Dependencies
  2. Ensures that all referenced package dependencies exist on the feed
  3. (Few other random checks I cant remember!)

If you want to take a look, check here: http://github.com/BenPhegan/NuGet.Extensions with the code for the Solution Audit in a branch called SolutionAudit.

We currently only build against NuGet 1.7 (I know....I know...) but will be looking to upgrade dependency soon.


Viewing all articles
Browse latest Browse all 7612

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>