コード例 #1
0
ファイル: SolutionWalker.cs プロジェクト: henjuv/coapp-vse
        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)
                    };
                }
            }
        }
コード例 #2
0
ファイル: SolutionWalker.cs プロジェクト: henjuv/coapp-vse
        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)
                    };
                }
            }
        }