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")