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

大兔子大兔子 提交于 2021-02-11 13:01:45

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!