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)"/>
3617
item.
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.
848
SetMetadataValue
(metadatum.Name, metadatum.EvaluatedValueEscaped);
Microsoft.Build.Engine.OM.UnitTests (44)
Construction\ProjectFormatting_Tests.cs (2)
326
itemToEdit.
SetMetadataValue
("ExcludeFromStyleCop", "true");
562
item[0].
SetMetadataValue
("metadata", "value");
Definition\DefinitionEditing_Tests.cs (13)
677
Helpers.GetFirst(project.GetItems("i")).
SetMetadataValue
("n", "n1");
722
Helpers.GetFirst(project.GetItems("i")).
SetMetadataValue
("m", "m2");
1212
ProjectMetadataElement metadatumElement1 = item0.
SetMetadataValue
("m", "m1").Xml;
1214
item0.
SetMetadataValue
("n", "n1");
1622
var metadatum = project.AddItem("i", "i1")[0].
SetMetadataValue
("p", "v1");
1726
var metadatum = project.AddItem("i", "i1")[0].
SetMetadataValue
("p", "v1");
1741
var metadatum = project.AddItem("i", "i1")[0].
SetMetadataValue
("p", "v1");
1752
AssertDisabledItemSplitting(projectContents, itemIndex, setupProject, (p, i) => { i.
SetMetadataValue
("foo", "bar"); });
1869
item.
SetMetadataValue
("m", "m1");
1897
item.
SetMetadataValue
("m", "m1%24%24");
1926
ProjectMetadata metadatum1 = item.
SetMetadataValue
("m", "m1");
1927
ProjectMetadata metadatum2 = item.
SetMetadataValue
("m", "m2");
2013
item.
SetMetadataValue
("m", "%(l)");
Definition\ProjectItem_Tests.cs (14)
238
item.
SetMetadataValue
("##invalid##", "x");
251
item.
SetMetadataValue
("FullPath", "x");
264
item.
SetMetadataValue
("Choose", "x");
1199
project.GetItems("i").First().
SetMetadataValue
("m", "m2");
1261
item1.
SetMetadataValue
("m", "m3");
1262
item1b.
SetMetadataValue
("m", "m4");
1263
item1c.
SetMetadataValue
("m", "m5");
1264
item2.
SetMetadataValue
("m", "m6");
1309
item1.
SetMetadataValue
("m", "m3");
1310
item1b.
SetMetadataValue
("m", "m4");
1311
item2.
SetMetadataValue
("m", "m6");
1873
item.
SetMetadataValue
("m", "m1");
2100
item.
SetMetadataValue
("m", "m0");
2123
item.
SetMetadataValue
("m", "m0");
Definition\ProjectMetadata_Tests.cs (8)
31
ProjectMetadata metadatum = item.
SetMetadataValue
("m", "m1");
60
Helpers.GetFirst(project.GetItems("i")).
SetMetadataValue
("m1", "v2");
61
Helpers.GetFirst(project.GetItems("i")).
SetMetadataValue
("m2", "v%214");
91
item.
SetMetadataValue
("m", "m1");
94
item.
SetMetadataValue
("m", "m1");
112
ProjectMetadata metadatum = item.
SetMetadataValue
("m", "m1");
130
ProjectMetadata metadatum = item.
SetMetadataValue
("m", "@(i)");
448
ProjectMetadata metadata = project.AddItem("i", "i1")[0].
SetMetadataValue
("m", "m1");
Definition\ProtectImports_Tests.cs (5)
308
item.
SetMetadataValue
(ImportedMetadataName, "NewImportedMetadataValue");
323
item.
SetMetadataValue
("NewMetadata", "NewImportedMetadataValue");
365
item.
SetMetadataValue
(ProjectMetadataName, NewValue);
380
item.
SetMetadataValue
(newName, NewValue);
458
item.
SetMetadataValue
(OverridableMetadataName, NewValue);
ObjectModelRemoting\LinkedEvaluationModify_Tests.cs (2)
237
fooView.
SetMetadataValue
("xx", "xxValue");
251
fooReal.
SetMetadataValue
("xxReal", "xxRealValue");
Microsoft.Build.Engine.UnitTests (3)
Definition\ProjectItem_Tests.cs (2)
33
item1.
SetMetadataValue
("m", "m2");
34
item1.
SetMetadataValue
("n", "n1");
Evaluation\Evaluator_Tests.cs (1)
1556
ProjectMetadata metadatum = item.
SetMetadataValue
("m", "m2");