Esempio n. 1
0
        public virtual IEnumerable <string> GetDirectories(string path)
        {
            return(NuGetUIThreadHelper.JoinableTaskFactory.Run(async delegate
            {
                await NuGetUIThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync();

                var childItems = await EnvDTEProjectUtility.GetChildItems(EnvDTEProject, path, "*.*", NuGetVSConstants.VsProjectItemKindPhysicalFolder);
                // Get all physical folders
                return from p in childItems
                select p.Name;
            }));
        }
Esempio n. 2
0
        private IEnumerable <string> GetChildItems(string path, string filter, string desiredKind)
        {
            return(NuGetUIThreadHelper.JoinableTaskFactory.Run(async delegate
            {
                await NuGetUIThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync();

                var childItems = await EnvDTEProjectUtility.GetChildItems(VsProjectAdapter.Project, path, filter, VsProjectTypes.VsProjectItemKindPhysicalFile);
                // Get all physical files
                return from p in childItems
                select p.Name;
            }));
        }
Esempio n. 3
0
 public IEnumerable <string> GetFiles(string path, string filter, bool recursive)
 {
     if (recursive)
     {
         throw new NotSupportedException();
     }
     else
     {
         // Get all physical files
         return(from p in EnvDTEProjectUtility.GetChildItems(EnvDTEProject, path, filter, NuGetVSConstants.VsProjectItemKindPhysicalFile)
                select p.Name);
     }
 }
Esempio n. 4
0
        public IEnumerable <string> GetFiles(string path, string filter, bool recursive)
        {
            if (recursive)
            {
                throw new NotSupportedException();
            }

            return(NuGetUIThreadHelper.JoinableTaskFactory.Run(async delegate
            {
                await NuGetUIThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync();

                var childItems = await EnvDTEProjectUtility.GetChildItems(EnvDTEProject, path, filter, NuGetVSConstants.VsProjectItemKindPhysicalFile);
                // Get all physical files
                return from p in childItems
                select p.Name;
            }));
        }
Esempio n. 5
0
 public IEnumerable <string> GetDirectories(string path)
 {
     // Get all physical folders
     return(from p in EnvDTEProjectUtility.GetChildItems(EnvDTEProject, path, "*.*", NuGetVSConstants.VsProjectItemKindPhysicalFolder)
            select p.Name);
 }