From ae6703bb526150d2b45fd8fc3f87a7abe96801ec Mon Sep 17 00:00:00 2001 From: Santiago Fernandez Madero Date: Tue, 26 Feb 2019 10:36:11 -0800 Subject: [PATCH] Fix warning conditions to only be emitted when feature is ON --- .../download-results/DownloadFromResultsContainer.targets | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Microsoft.DotNet.Helix/Sdk/tools/download-results/DownloadFromResultsContainer.targets b/src/Microsoft.DotNet.Helix/Sdk/tools/download-results/DownloadFromResultsContainer.targets index f0bf9c8e7e7..427c6034981 100644 --- a/src/Microsoft.DotNet.Helix/Sdk/tools/download-results/DownloadFromResultsContainer.targets +++ b/src/Microsoft.DotNet.Helix/Sdk/tools/download-results/DownloadFromResultsContainer.targets @@ -14,13 +14,15 @@ $([MSBuild]::NormalizePath('$(BUILD_SOURCESDIRECTORY)', 'artifacts', helixresults')) + + <_shouldDownloadResults>false + <_shouldDownloadResults Condition="'@(_workItemsWithDownloadMetadata)' != '' AND '$(HelixResultsDestinationDir)' != ''">true - - +