diff --git a/src/Tasks/Microsoft.Common.CurrentVersion.targets b/src/Tasks/Microsoft.Common.CurrentVersion.targets
index 5cb6b90a804..b108aed6fbc 100644
--- a/src/Tasks/Microsoft.Common.CurrentVersion.targets
+++ b/src/Tasks/Microsoft.Common.CurrentVersion.targets
@@ -4308,7 +4308,9 @@ Copyright (C) Microsoft Corporation. All rights reserved.
input to projects that reference this one. -->
+ Condition="'@(ReferencesCopiedInThisBuild)' != ''">
+
+