Fix UpdateVersionsRepo to pass file paths instead of a directory

This commit is contained in:
Eric Erhardt 2017-03-06 11:22:28 -06:00
parent 21471aa956
commit 21080fc5be

View file

@ -4,6 +4,7 @@
using Microsoft.Build.Framework; using Microsoft.Build.Framework;
using Microsoft.Build.Utilities; using Microsoft.Build.Utilities;
using Microsoft.DotNet.VersionTools.Automation; using Microsoft.DotNet.VersionTools.Automation;
using System.IO;
namespace Microsoft.DotNet.Cli.Build namespace Microsoft.DotNet.Cli.Build
{ {
@ -25,7 +26,7 @@ namespace Microsoft.DotNet.Cli.Build
GitHubAuth auth = new GitHubAuth(GitHubPassword); GitHubAuth auth = new GitHubAuth(GitHubPassword);
GitHubVersionsRepoUpdater repoUpdater = new GitHubVersionsRepoUpdater(auth); GitHubVersionsRepoUpdater repoUpdater = new GitHubVersionsRepoUpdater(auth);
repoUpdater.UpdateBuildInfoAsync( repoUpdater.UpdateBuildInfoAsync(
new [] { PackagesDirectory }, Directory.GetFiles(PackagesDirectory, "*.nupkg"),
versionsRepoPath).Wait(); versionsRepoPath).Wait();
return true; return true;