예제 #1
0
 public IEnumerable <PackageDependencyNode> GetDependencyNodes(bool sdkDependencies)
 {
     return(PackageDependencyNode.GetDependencyNodes(
                DependenciesNode,
                dependency,
                sdkDependencies,
                topLevel: true));
 }
예제 #2
0
        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);
        }
예제 #3
0
        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)));
 }
예제 #5
0
 public PackageDependencyNodeDescriptor(PackageDependencyNode dependencyNode)
 {
     this.dependencyNode = dependencyNode;
 }