Skip to content

Tools for analyzing and visualizing dependencies of NuGet packages leveraging directed graphs (DGML)

License

Notifications You must be signed in to change notification settings

patricksadowski/NuGet.Dgml

Repository files navigation

NuGet.Dgml

The aim of the repository is to provide tools for analyzing and visualizing dependencies of NuGet packages leveraging directed graphs (DGML).

The library was indented to manage and maintain local repositories at home or in business. It's not recommended to execute the functions against a large repository like <nuget.org>.

Usage

You only have to import the namespace NuGet.Dgml and look for new extension methods on the NuGet types.

Sample:

using NuGet.Dgml;
using NuGet.Protocol;
using NuGet.Protocol.Core.Types;

var repository = Repository.Factory.GetCoreV3(@"N:\My Package Repository\");
var directedGraph = await repository.VisualizeUpgradeableDependenciesAsync().ConfigureAwait(false);
directedGraph.AsXDocument().Save(@"C:\My Package Repository.dgml");

Functions

The functions are implemented as extension methods. Every part of the library is public.

Extension method for type: SourceRepository PackageIdentity
VisualizeUpgradeableDependencies Implemented Implemented

Applications supporting DGML

  • Visual Studio 2010(+): viewer and visual editor

Contributing

Just follow the GitHub Flow.

About

Tools for analyzing and visualizing dependencies of NuGet packages leveraging directed graphs (DGML)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published