From 21080fc5be8cf8f416917c108e077f572176b50c Mon Sep 17 00:00:00 2001 From: Eric Erhardt Date: Mon, 6 Mar 2017 11:22:28 -0600 Subject: [PATCH] Fix UpdateVersionsRepo to pass file paths instead of a directory --- build_projects/dotnet-cli-build/UpdateVersionsRepo.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build_projects/dotnet-cli-build/UpdateVersionsRepo.cs b/build_projects/dotnet-cli-build/UpdateVersionsRepo.cs index 0f481bd97..f528e05ad 100644 --- a/build_projects/dotnet-cli-build/UpdateVersionsRepo.cs +++ b/build_projects/dotnet-cli-build/UpdateVersionsRepo.cs @@ -4,6 +4,7 @@ using Microsoft.Build.Framework; using Microsoft.Build.Utilities; using Microsoft.DotNet.VersionTools.Automation; +using System.IO; namespace Microsoft.DotNet.Cli.Build { @@ -25,7 +26,7 @@ namespace Microsoft.DotNet.Cli.Build GitHubAuth auth = new GitHubAuth(GitHubPassword); GitHubVersionsRepoUpdater repoUpdater = new GitHubVersionsRepoUpdater(auth); repoUpdater.UpdateBuildInfoAsync( - new [] { PackagesDirectory }, + Directory.GetFiles(PackagesDirectory, "*.nupkg"), versionsRepoPath).Wait(); return true;