Ejemplo n.º 1
0
        private static void CollectAllPathsToProjects(IFileSystem fileSystem, AbsolutePath pathToPackageDirectory, List <AbsolutePath> projects)
        {
            var pathTable = fileSystem.GetPathTable();
            var files     =
                fileSystem.EnumerateFiles(pathToPackageDirectory)
                .Where(pathToFile => ExtensionUtilities.IsNonConfigurationFile(Path.GetFileName(pathToFile.ToString(pathTable))));

            foreach (var file in files)
            {
                AddProjectSynchronized(projects, file);
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Whether <param name="filePath"/> (created with <param name="pathTable"/> looks like a DScript project file.
        /// </summary>
        public static bool IsPathToProjectFile(AbsolutePath filePath, PathTable pathTable)
        {
            var fileName = filePath.GetName(pathTable).ToString(pathTable.StringTable);

            return(ExtensionUtilities.IsNonConfigurationFile(fileName));
        }