Beispiel #1
0
        public static IEnumerable <string> EnumerateMetas(PackageReferenceModel package)
        {
            var libPath = Path.Combine(package.PackagePath, "lib");

            return(EnumerateFiles(libPath, package.FrameworkShortFolderName, "*.xml", SearchOption.TopDirectoryOnly, out _));
        }
Beispiel #2
0
        public static IEnumerable <string> EnumerateSourceFiles(PackageReferenceModel package, out string baseFolder)
        {
            var sourcesPath = Path.Combine(package.PackagePath, "contentFiles", "cs");

            return(EnumerateFiles(sourcesPath, package.FrameworkShortFolderName, "*.cs", SearchOption.AllDirectories, out baseFolder));
        }