2 writes to Metadata
Microsoft.Build.Framework (2)
Sdk\SdkResultItem.cs (2)
24
Metadata
= new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
35
Metadata
= metadata;
22 references to Metadata
Microsoft.Build (4)
BackEnd\Components\SdkResolution\TranslationHelpers.cs (1)
45
metadata = item.
Metadata
;
Evaluation\Evaluator.cs (3)
1939
if (item.Value.
Metadata
!= null)
1941
escapedMetadata = new Dictionary<string, string>(item.Value.
Metadata
.Count, StringComparer.OrdinalIgnoreCase);
1942
foreach (var metadata in item.Value.
Metadata
)
Microsoft.Build.Engine.UnitTests (11)
BackEnd\SdkResolverService_Tests.cs (1)
357
var metadata = result.ItemsToAdd.Values.Single().
Metadata
;
BackEnd\SdkResultItemComparison_Tests.cs (8)
21
sdkResultItem1.
Metadata
.Add("key1", "value1");
22
sdkResultItem1.
Metadata
.Add("key2", "value2");
25
sdkResultItem2.
Metadata
.Add("key2", "value2");
26
sdkResultItem2.
Metadata
.Add("key1", "value1");
46
sdkResultItem1.
Metadata
.Add("key1", "value1");
47
sdkResultItem1.
Metadata
.Add("key2", "value2");
52
sdkResultItem2.
Metadata
.Add("key2", "value2");
53
sdkResultItem2.
Metadata
.Add("key1", "value1");
InternalEngineHelpers.cs (2)
114
if (item.Value.
Metadata
!= null)
116
newMetadata = new Dictionary<string, string>(item.Value.
Metadata
, StringComparer.OrdinalIgnoreCase);
Microsoft.Build.Framework (7)
Sdk\SdkResultItem.cs (7)
42
item.
Metadata
is not null &&
43
Metadata
?.Count == item.
Metadata
.Count)
45
return
Metadata
.All(m => item.
Metadata
.TryGetValue(m.Key, out var itemValue) && itemValue == m.Value);
55
if (
Metadata
!= null)
57
foreach (var kvp in
Metadata
)