15 references to AddMetadata
Microsoft.Build (2)
Definition\ProjectItemDefinition.cs (1)
175
ProjectMetadataElement metadatumXml = itemDefinition.
AddMetadata
(name, unevaluatedValue);
Instance\ProjectItemDefinitionInstance.cs (1)
217
element.
AddMetadata
(metadataInstance.Name, metadataInstance.EvaluatedValue);
Microsoft.Build.Engine.OM.UnitTests (12)
Construction\ConstructionEditing_Tests.cs (2)
2547
var element = ProjectRootElement.Create().AddItemDefinition("i").
AddMetadata
("m", "M1");
2894
var element = ProjectRootElement.Create().AddItemDefinition("i").
AddMetadata
("m", "M1");
Construction\ProjectRootElement_Tests.cs (1)
1180
id.
AddMetadata
("sm", "sv");
Definition\DefinitionEditing_Tests.cs (1)
2046
xml.AddItemDefinitionGroup().AddItemDefinition("i").
AddMetadata
("m", "m0");
Definition\ProjectItem_Tests.cs (2)
1892
xml.AddItemDefinition("i").
AddMetadata
("m", "m1");
1916
xml.AddItemDefinition("i").
AddMetadata
("m", "m1");
Definition\ProjectItemDefinition_Tests.cs (5)
33
xml.AddItemDefinitionGroup().AddItemDefinition("i").
AddMetadata
("m", "m0");
61
xml.AddItemDefinitionGroup().AddItemDefinition("i").
AddMetadata
("m", "m0");
100
xml.AddItemDefinitionGroup().AddItemDefinition("i").
AddMetadata
("m", "m0");
127
import.AddItemDefinitionGroup().AddItemDefinition("i").
AddMetadata
("m", "m0");
157
import.AddItemDefinitionGroup().AddItemDefinition("i").
AddMetadata
("m", "m0");
ObjectModelRemoting\LinkedConstructionModify_Tests.cs (1)
616
itemDef.Add2NewChildrenWithVerify<ProjectMetadataElement>("mshort", (id, n) => id.
AddMetadata
(n, $"value{n}"), (md, n) => md.Name == n, out var mdShort1, out var mdShort2);
Microsoft.Build.Engine.UnitTests (1)
Evaluation\Evaluator_Tests.cs (1)
1825
import.AddItemDefinition("i").
AddMetadata
("m", "%(m);m1");