We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 358036b commit 2f325dcCopy full SHA for 2f325dc
src/StructuredLogger/ObjectModel/TaskItem.cs
@@ -35,13 +35,16 @@ public IDictionary CloneCustomMetadataEscaped()
35
36
public void CopyMetadataTo(ITaskItem destinationItem)
37
{
38
- throw new NotImplementedException();
+ foreach (var kvp in Metadata)
39
+ {
40
+ destinationItem.SetMetadata(kvp.Key, kvp.Value);
41
+ }
42
}
43
44
public string GetMetadata(string metadataName)
45
46
Metadata.TryGetValue(metadataName, out var result);
- return result;
47
+ return result ?? "";
48
49
50
public string GetMetadataValueEscaped(string metadataName)
0 commit comments