/// <summary> /// Create and retrive all unique enabled package sources /// </summary> /// <returns></returns> public IReadOnlyList <PackageSource> GetAllPackageSources() { var feeds = NuGetFeeds.Where(x => x.IsSelected); if (!feeds.Any()) { //then try to return all feeds, 'all' feed probably is selected feeds = NuGetFeeds.Where(x => x.IsEnabled); } return(feeds.Select(x => new PackageSource(x.Source, x.Name, x.IsEnabled)).ToList()); }
// Removes empty NuGet feeds.* private void CleanEmptyFeeds() { NuGetFeeds = NuGetFeeds?.Where(x => !IsNullOrEmpty(x.URL)).ToArray(); }