54 references to SetMetadataValue
Microsoft.Build (7)
Definition\Project.cs (3)
95/// - <see cref="ProjectItem.SetMetadataValue(string,string)"/> 1986/// - <see cref="ProjectItem.SetMetadataValue(string,string)"/> 3617item.SetMetadataValue(metadatum.Key, metadatum.Value);
Definition\ProjectItem.cs (4)
285/// This is a read-only collection. To modify the metadata, use <see cref="SetMetadataValue(string, string)"/>. 327/// This is a read-only collection. To modify the metadata, use <see cref="SetMetadataValue(string, string)"/>. 564/// Overload of <see cref="SetMetadataValue(string,string)"/>. Adds the option of not splitting the item element and thus affecting all sibling items. 848SetMetadataValue(metadatum.Name, metadatum.EvaluatedValueEscaped);
Microsoft.Build.Engine.OM.UnitTests (44)
Construction\ProjectFormatting_Tests.cs (2)
326itemToEdit.SetMetadataValue("ExcludeFromStyleCop", "true"); 562item[0].SetMetadataValue("metadata", "value");
Definition\DefinitionEditing_Tests.cs (13)
677Helpers.GetFirst(project.GetItems("i")).SetMetadataValue("n", "n1"); 722Helpers.GetFirst(project.GetItems("i")).SetMetadataValue("m", "m2"); 1212ProjectMetadataElement metadatumElement1 = item0.SetMetadataValue("m", "m1").Xml; 1214item0.SetMetadataValue("n", "n1"); 1622var metadatum = project.AddItem("i", "i1")[0].SetMetadataValue("p", "v1"); 1726var metadatum = project.AddItem("i", "i1")[0].SetMetadataValue("p", "v1"); 1741var metadatum = project.AddItem("i", "i1")[0].SetMetadataValue("p", "v1"); 1752AssertDisabledItemSplitting(projectContents, itemIndex, setupProject, (p, i) => { i.SetMetadataValue("foo", "bar"); }); 1869item.SetMetadataValue("m", "m1"); 1897item.SetMetadataValue("m", "m1%24%24"); 1926ProjectMetadata metadatum1 = item.SetMetadataValue("m", "m1"); 1927ProjectMetadata metadatum2 = item.SetMetadataValue("m", "m2"); 2013item.SetMetadataValue("m", "%(l)");
Definition\ProjectItem_Tests.cs (14)
238item.SetMetadataValue("##invalid##", "x"); 251item.SetMetadataValue("FullPath", "x"); 264item.SetMetadataValue("Choose", "x"); 1199project.GetItems("i").First().SetMetadataValue("m", "m2"); 1261item1.SetMetadataValue("m", "m3"); 1262item1b.SetMetadataValue("m", "m4"); 1263item1c.SetMetadataValue("m", "m5"); 1264item2.SetMetadataValue("m", "m6"); 1309item1.SetMetadataValue("m", "m3"); 1310item1b.SetMetadataValue("m", "m4"); 1311item2.SetMetadataValue("m", "m6"); 1873item.SetMetadataValue("m", "m1"); 2100item.SetMetadataValue("m", "m0"); 2123item.SetMetadataValue("m", "m0");
Definition\ProjectMetadata_Tests.cs (8)
31ProjectMetadata metadatum = item.SetMetadataValue("m", "m1"); 60Helpers.GetFirst(project.GetItems("i")).SetMetadataValue("m1", "v2"); 61Helpers.GetFirst(project.GetItems("i")).SetMetadataValue("m2", "v%214"); 91item.SetMetadataValue("m", "m1"); 94item.SetMetadataValue("m", "m1"); 112ProjectMetadata metadatum = item.SetMetadataValue("m", "m1"); 130ProjectMetadata metadatum = item.SetMetadataValue("m", "@(i)"); 448ProjectMetadata metadata = project.AddItem("i", "i1")[0].SetMetadataValue("m", "m1");
Definition\ProtectImports_Tests.cs (5)
308item.SetMetadataValue(ImportedMetadataName, "NewImportedMetadataValue"); 323item.SetMetadataValue("NewMetadata", "NewImportedMetadataValue"); 365item.SetMetadataValue(ProjectMetadataName, NewValue); 380item.SetMetadataValue(newName, NewValue); 458item.SetMetadataValue(OverridableMetadataName, NewValue);
ObjectModelRemoting\LinkedEvaluationModify_Tests.cs (2)
237fooView.SetMetadataValue("xx", "xxValue"); 251fooReal.SetMetadataValue("xxReal", "xxRealValue");
Microsoft.Build.Engine.UnitTests (3)
Definition\ProjectItem_Tests.cs (2)
33item1.SetMetadataValue("m", "m2"); 34item1.SetMetadataValue("n", "n1");
Evaluation\Evaluator_Tests.cs (1)
1556ProjectMetadata metadatum = item.SetMetadataValue("m", "m2");