Beispiel #1
0
        private static async Task DownloadAsync(
            List <string> sources,
            AlignedVersionsDownloader alignedVersionDownloader,
            SourceCacheContext sourceCacheContext,
            ILogger log)
        {
            await alignedVersionDownloader.DownloadPackagesAsync(
                sources,
                ToolsFactory.PackageIds2x,
                VersionRange.Parse("[2.5.0, )", allowFloating: false),
                sourceCacheContext,
                log,
                CancellationToken.None);

            await alignedVersionDownloader.DownloadPackagesAsync(
                sources,
                ToolsFactory.PackageIds3x,
                VersionRange.All,
                sourceCacheContext,
                log,
                CancellationToken.None);
        }
Beispiel #2
0
 private string GetVersionRangeNormalizedString(string input)
 {
     return(NuGetVersionRange.Parse(input).ToNormalizedString());
 }