Mathivanan KP
Mathivanan KP

Reputation: 2044

How to get the dependencies of a NuGet package from private NuGet feed?

I have tried this for load a package using NuGet.Core. How shall I proceed further on this? I need to get the list of dependency packages of the package in a list from public/private feed using C#.

string packageID = "EntityFramework";
IPackageRepository repo = PackageRepositoryFactory.Default.CreateRepository("https://packages.nuget.org/api/v2");
var package = repo.FindPackage(packageID);

Upvotes: 0

Views: 606

Answers (1)

Mathivanan KP
Mathivanan KP

Reputation: 2044

Found solution. package.DependencySets gives the dependency sets.

Upvotes: 1

Related Questions