简体   繁体   中英

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);

Found solution. package.DependencySets gives the dependency sets.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM