From 6d47939a55dde81339fde0b3ac867fae85f4dda7 Mon Sep 17 00:00:00 2001 From: Alex Perovich Date: Thu, 14 Oct 2021 15:06:50 -0700 Subject: [PATCH] Fix PublishSignedAssets (#8042) --- .../src/PublishArtifactsInManifestBase.cs | 4 ++-- .../src/PublishSignedAssets.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Microsoft.DotNet.Build.Tasks.Feed/src/PublishArtifactsInManifestBase.cs b/src/Microsoft.DotNet.Build.Tasks.Feed/src/PublishArtifactsInManifestBase.cs index d139ae33ec4..2dbccedd252 100644 --- a/src/Microsoft.DotNet.Build.Tasks.Feed/src/PublishArtifactsInManifestBase.cs +++ b/src/Microsoft.DotNet.Build.Tasks.Feed/src/PublishArtifactsInManifestBase.cs @@ -205,9 +205,9 @@ public enum ArtifactName private int TimeoutInSeconds = 300; - protected PublishArtifactsInManifestBase(AssetPublisherFactory assetPublisherFactory) + protected PublishArtifactsInManifestBase(AssetPublisherFactory assetPublisherFactory = null) { - AssetPublisherFactory = assetPublisherFactory; + AssetPublisherFactory = assetPublisherFactory ?? new AssetPublisherFactory(new MsBuildUtils.TaskLoggingHelper(this)); } public override bool Execute() diff --git a/src/Microsoft.DotNet.Build.Tasks.Feed/src/PublishSignedAssets.cs b/src/Microsoft.DotNet.Build.Tasks.Feed/src/PublishSignedAssets.cs index 6afdcd7f100..6b1e364bf2a 100644 --- a/src/Microsoft.DotNet.Build.Tasks.Feed/src/PublishSignedAssets.cs +++ b/src/Microsoft.DotNet.Build.Tasks.Feed/src/PublishSignedAssets.cs @@ -98,7 +98,7 @@ await PushNugetPackagesAsync(packagesToPublish, targetFeedConfi }); } - public PublishSignedAssets(AssetPublisherFactory assetPublisherFactory) : base(assetPublisherFactory) + public PublishSignedAssets() : base() { } }