Пример #1
0
        private void PopulateProjectAndPackageReferences(PackageBuilder packageBuilder, LockFile assetsFile)
        {
            var dependenciesByFramework = new Dictionary <NuGetFramework, HashSet <LibraryDependency> >();

            InitializeProjectDependencies(assetsFile, dependenciesByFramework);
            InitializePackageDependencies(assetsFile, dependenciesByFramework);

            foreach (var pair in dependenciesByFramework)
            {
                PackCommandRunner.AddDependencyGroups(pair.Value, pair.Key, packageBuilder);
            }
        }
Пример #2
0
        private void PopulateProjectAndPackageReferences(PackageBuilder packageBuilder, LockFile assetsFile,
                                                         IDictionary <string, string> projectRefToVersionMap,
                                                         ISet <NuGetFramework> frameworksWithSuppressedDependencies)
        {
            var dependenciesByFramework = new Dictionary <NuGetFramework, HashSet <LibraryDependency> >();

            InitializeProjectDependencies(assetsFile, dependenciesByFramework, projectRefToVersionMap, frameworksWithSuppressedDependencies);
            InitializePackageDependencies(assetsFile, dependenciesByFramework, frameworksWithSuppressedDependencies);

            foreach (var pair in dependenciesByFramework)
            {
                PackCommandRunner.AddDependencyGroups(pair.Value, pair.Key, packageBuilder);
            }
        }