Esempio n. 1
0
        private void AddProjectsToResult(IPackageInfo package, MarkdownBuilder builder)
        {
            IImmutableList <IProject> usedInProjects = projects.FindByPackage(package.Id);

            if (usedInProjects.IsNullOrEmpty())
            {
                return;
            }

            builder.Header($"Used in {usedInProjects.Count} project(s)", 2);

            foreach (IProject project in usedInProjects)
            {
                builder.Bullet($"{project.Name} ({project.Packages[package.Id].Version})");
            }
        }