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