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; })); }
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; })); }
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); } }
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; })); }
public IEnumerable <string> GetDirectories(string path) { // Get all physical folders return(from p in EnvDTEProjectUtility.GetChildItems(EnvDTEProject, path, "*.*", NuGetVSConstants.VsProjectItemKindPhysicalFolder) select p.Name); }