问题
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);
回答1:
Found solution. package.DependencySets
gives the dependency sets.
来源:https://stackoverflow.com/questions/39158462/how-to-get-the-dependencies-of-a-nuget-package-from-private-nuget-feed