From 8187976cd29cb1baef5447163b1b305681576fad Mon Sep 17 00:00:00 2001 From: Luigi Berrettini Date: Sun, 29 May 2022 14:17:23 +0200 Subject: [PATCH] Push to NuGet without wildcards (#306 closes #305) --- build/scripts/cake.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/scripts/cake.cs b/build/scripts/cake.cs index 26200d2..9b25dac 100644 --- a/build/scripts/cake.cs +++ b/build/scripts/cake.cs @@ -285,9 +285,9 @@ int ApplyRevisionBounds(int number) } Information($"NuGet source: {nuGetSource}"); - var packageSearchPattern = System.IO.Path.Combine(artifactsDir, "*.nupkg"); + var packages = new DirectoryInfo(artifactsDir).GetFiles("*.nupkg").ToList(); var nuGetPushSettings = new DotNetNuGetPushSettings { Source = nuGetSource, ApiKey = nuGetApiKey }; - DotNetNuGetPush(packageSearchPattern, nuGetPushSettings); + packages.ForEach(x => DotNetNuGetPush(x.FullName, nuGetPushSettings)); }); Task("ZipArtifacts")