Skip to content

Commit ab60969

Browse files
committed
Add output to the override so we can confirm everything that's being replaced.
1 parent 00f8f8a commit ab60969

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Tasks/sdk-tasks/OverrideAndCreateBundledNETCoreAppPackageVersion.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,14 @@ void CheckAndReplaceElement(XElement element)
8787
element.ToString(), element.Value, originalBundledNETCoreAppPackageVersion));
8888
}
8989

90+
Log.LogMessage(MessageImportance.High,
91+
$"Replacing element {element.Name} value '{element.Value}' with '{newBundledPackageVersion}'");
9092
element.Value = newBundledPackageVersion;
9193
}
9294

9395
void CheckAndReplaceAttribute(XAttribute attribute)
9496
{
97+
9598
if (attribute.Value != originalBundledNETCoreAppPackageVersion)
9699
{
97100
throw new InvalidOperationException(string.Format(
@@ -100,6 +103,8 @@ void CheckAndReplaceAttribute(XAttribute attribute)
100103
originalBundledNETCoreAppPackageVersion));
101104
}
102105

106+
Log.LogMessage(MessageImportance.High,
107+
$"Replacing attribute {attribute.Name} value '{attribute.Value}' with '{newBundledPackageVersion}' in element {attribute.Parent.Name}");
103108
attribute.Value = newBundledPackageVersion;
104109
}
105110

0 commit comments

Comments
 (0)