9 writes to Name
Microsoft.Build.Engine.OM.UnitTests (9)
Construction\ConstructionEditing_Tests.cs (2)
3162attributeMetadata.Name = "A2"; 3163elementMetadata.Name = "B2";
Construction\ProjectMetadataElement_Tests.cs (5)
222metadatum.Name = "m2"; 236metadatum.Name = "m"; 251metadatum.Name = "ImportGroup"; 263metadatum.Name = "Include"; 272metadatum.Name = "Include";
ObjectModelRemoting\LinkedConstructionModify_Tests.cs (1)
355metadata.VerifySetter("NewName", (md) => md.Name, (md, v) => md.Name = v);
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectMetadataElementLink.cs (1)
29public void ChangeName(string newName) { MetadataXml.Name = newName; }
59 references to Name
Microsoft.Build (12)
Construction\ProjectMetadataElement.cs (2)
70ValidateValidMetadataAsAttributeName(Name, Parent?.ElementName ?? "null", Parent?.Location); 174return owner.CreateMetadataElement(Name);
Definition\ProjectItem.cs (1)
533ProjectMetadata predecessor = GetMetadata(metadataElement.Name);
Definition\ProjectMetadata.cs (1)
92{ return _xml.Name; }
Evaluation\Evaluator.cs (2)
507metadataElement.Name, 1362M predecessor = itemDefinition.GetMetadata(metadataElement.Name);
Evaluation\EvaluatorMetadataTable.cs (1)
102_metadata[xml.Name] = new EvaluatorMetadata(xml, evaluatedValueEscaped);
Evaluation\ProjectParser.cs (1)
409ProjectErrorUtilities.VerifyThrowInvalidProject(!containsItemVector, element.Location, "MetadataDefinitionCannotContainItemVectorExpression", metadatum.Value, metadatum.Name);
Instance\ProjectItemDefinitionInstance.cs (2)
201ProjectMetadataInstance metadatum = new ProjectMetadataInstance(xml.Name, evaluatedValue); 202_metadata[xml.Name] = metadatum;
Instance\ProjectItemInstance.cs (2)
454return SetMetadata(metadataElement.Name, evaluatedInclude); 2058IEnumerable<ProjectMetadataInstance> projectMetadataInstances = metadataList.Select(metadatum => new ProjectMetadataInstance(metadatum.Key.Name, metadatum.Value));
Microsoft.Build.Engine.OM.UnitTests (47)
Construction\ProjectItemDefinitionElement_Tests.cs (4)
65Assert.Equal("m1", Helpers.GetFirst(definition.Metadata).Name); 115Assert.Equal("m1", metadata[0].Name); 117Assert.Equal("m2", metadata[1].Name); 120Assert.Equal("m1", metadata[2].Name);
Construction\ProjectItemElement_Tests.cs (5)
368Assert.Equal("m1", metadata1[0].Name); 376Assert.Equal("m2", metadata2[0].Name); 417Assert.Equal("m1", metadata[0].Name); 419Assert.Equal("m2", metadata[1].Name); 422Assert.Equal("m1", metadata[2].Name);
Construction\ProjectMetadataElement_Tests.cs (21)
38Assert.Equal("m", metadatum.Name); 223Assert.Equal("m2", metadatum.Name); 237Assert.Equal("m", metadatum.Name); 437Assert.Equal("m1", metadata.Name); 462Assert.Equal("m1", metadata.Name); 496Assert.Equal("m1", metadata.Name); 521Assert.Equal("m1", metadata.Name); 573Assert.Equal("m1", metadata.Name); 616Assert.Equal("m1", metadata.Name); 690Assert.Equal("m1", metadata.Name); 733Assert.Equal("m1", metadata.Name); 819Assert.Equal("m1", metadata.Name); 882Assert.Equal("m1", metadata.Name); 951Assert.Equal("m1", metadata.Name); 994Assert.Equal("m1", metadata.Name); 1067Assert.Equal("m1", metadata.Name); 1107Assert.Equal("m1", metadata.Name); 1178Assert.Equal("m1", metadata.Name); 1185Assert.Equal("m2", metadata.Name); 1225Assert.Equal("m1", metadata.Name); 1232Assert.Equal("m2", metadata.Name);
Definition\ProjectItem_Tests.cs (4)
2194Assert.Equal("M", metadataElement.Name); 2250Assert.Equal("M1", me1.Name); 2254Assert.Equal("M2", me2.Name); 2306Assert.Equal("M1", me1.Name);
ObjectModelRemoting\Helpers\ViewValidation.construction.cs (2)
628Assert.Equal(realXml.Name, viewXml.Name);
ObjectModelRemoting\LinkedConstructionModify_Tests.cs (11)
85ViewValidation.VerifyMetadata(itemMetadata, (k) => itemWithMetadata1.View.Metadata.Where((md) => md.Name == k).FirstOrDefault().Value); 352var metadata = item1.AddNewChaildWithVerify<ProjectMetadataElement>(ObjectType.View, "metadata", (p, n) => p.AddMetadata(n, "value"), (md, n) => md.Name == n); 355metadata.VerifySetter("NewName", (md) => md.Name, (md, v) => md.Name = v); 616itemDef.Add2NewChildrenWithVerify<ProjectMetadataElement>("mshort", (id, n) => id.AddMetadata(n, $"value{n}"), (md, n) => md.Name == n, out var mdShort1, out var mdShort2); 618itemDef.Add2NewChildrenWithVerify<ProjectMetadataElement>("mlong", (id, n) => id.AddMetadata(n, $"value{n}", false), (md, n) => md.Name == n, out var mdLong1, out var mdLong2); 621itemDef.Add2NewChildrenWithVerify<ProjectMetadataElement>("mlongAttrib", (id, n) => id.AddMetadata(n, $"value{n}", true), (md, n) => md.Name == n, out var mdAttrib1, out var mdAttrib2); 672item.Add2NewChildrenWithVerify<ProjectMetadataElement>("mshort", (id, n) => id.AddMetadata(n, $"value{n}"), (md, n) => md.Name == n, out var mdShort1, out var mdShort2); 674item.Add2NewChildrenWithVerify<ProjectMetadataElement>("mlong", (id, n) => id.AddMetadata(n, $"value{n}", false), (md, n) => md.Name == n, out var mdLong1, out var mdLong2); 676item.Add2NewChildrenWithVerify<ProjectMetadataElement>("mlongAttrib", (id, n) => id.AddMetadata(n, $"value{n}", true), (md, n) => md.Name == n, out var mdAttrib1, out var mdAttrib2); 707ViewValidation.VerifyMetadata(itemMetadata, (k) => itemWithMetadata1.View.Metadata.Where((md) => md.Name == k).FirstOrDefault().Value); 708ViewValidation.VerifyMetadata(itemMetadata, (k) => itemWithMetadata2.View.Metadata.Where((md) => md.Name == k).FirstOrDefault().Value);