![](/img/trans.png)
[英]How can I get the NuGet package version programmatically from a NuGet feed?
[英]How to get the dependencies of a NuGet package from private NuGet feed?
我已经尝试过使用NuGet.Core加载包。 我应该如何进一步处理? 我需要使用C#从公共/私有提要中获取列表中包的依赖包列表。
string packageID = "EntityFramework";
IPackageRepository repo = PackageRepositoryFactory.Default.CreateRepository("https://packages.nuget.org/api/v2");
var package = repo.FindPackage(packageID);
找到解决方案。 package.DependencySets
提供依赖项集。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.