private static IEnumerable<TreeNodeBase> CreateLibraryNode(Project project, Package package, string configuration) { var path = package.GetPackageDirectory() + "lib"; if (Directory.Exists(path)) { var files = Directory.GetFiles(path, "*.lib"); foreach (var filename in files.Select(Path.GetFileName)) { yield return new LibraryNode(filename) { IsChecked = DetermineCheckState(package, project, configuration, filename) }; } } }
private static IEnumerable<TreeNodeBase> CreateAssemblyNode(Project project, Package package) { var path = package.GetPackageDirectory() + "ReferenceAssemblies"; if (Directory.Exists(path)) { var files = Directory.GetFiles(path, "*.dll"); foreach (var filename in files.Select(Path.GetFileName)) { yield return new AssemblyNode(filename) { IsChecked = DetermineCheckState(package, project, null, filename) }; } } }