0

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);
Mathivanan KP
  • 1,979
  • 16
  • 25

1 Answers1

1

Found solution. package.DependencySets gives the dependency sets.

Mathivanan KP
  • 1,979
  • 16
  • 25