public IEnumerable <PackageDependencyNode> GetDependencyNodes(bool sdkDependencies) { return(PackageDependencyNode.GetDependencyNodes( DependenciesNode, dependency, sdkDependencies, topLevel: true)); }
public static PackageDependencyNode Create( DependenciesNode dependenciesNode, PackageDependencyInfo dependency, bool sdkDependencies, bool topLevel) { var node = new PackageDependencyNode(dependenciesNode, dependency, topLevel); if (node.IsSupported(sdkDependencies)) { return(node); } return(null); }
public static PackageDependencyNode Create( DependenciesNode dependenciesNode, string dependencyName, bool sdkDependencies, bool topLevel) { PackageDependency dependency = dependenciesNode.PackageDependencyCache.GetDependency(dependencyName); if (dependency != null) { var node = new PackageDependencyNode(dependenciesNode, dependency, topLevel); if (node.IsSupported(sdkDependencies)) { return(node); } } return(null); }
public IEnumerable <PackageDependencyNode> GetProjectPackageReferencesAsDependencyNodes(DependenciesNode dependenciesNode) { return(Project.Items.OfType <ProjectPackageReference> () .Select(reference => PackageDependencyNode.Create(dependenciesNode, reference))); }
public PackageDependencyNodeDescriptor(PackageDependencyNode dependencyNode) { this.dependencyNode = dependencyNode; }