Implemented interface member:
property
Name
Microsoft.Build.Execution.IPropertyElementWithLocation.Name
5 writes to Name
Microsoft.Build.Engine.OM.UnitTests (5)
Construction\ProjectPropertyElement_Tests.cs (3)
191property.Name = "p2"; 205property.Name = "p"; 220property.Name = "ImportGroup";
ObjectModelRemoting\LinkedConstructionModify_Tests.cs (1)
720prop.VerifySetter("newName", (p) => p.Name, (p, v) => p.Name = v);
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectPropertyElementLink.cs (1)
29public void ChangeName(string newName) { PropertyXml.Name = newName; }
28 references to Name
Microsoft.Build (14)
Construction\ProjectPropertyElement.cs (1)
140return owner.CreatePropertyElement(Name);
Construction\ProjectPropertyGroupElement.cs (1)
83if (String.Equals(property.Name, name, StringComparison.OrdinalIgnoreCase) && property.Condition.Length == 0)
Construction\ProjectRootElement.cs (1)
1186if (MSBuildNameIgnoreCaseComparer.Default.Equals(property.Name, name))
Definition\Project.cs (1)
4455ProjectProperty predecessor = GetProperty(propertyElement.Name);
Definition\ProjectProperty.cs (3)
363ErrorUtilities.VerifyThrowInvalidOperation(!ProjectHasMatchingGlobalProperty(project, xml.Name), "OM_GlobalProperty", xml.Name); 382{ return _xml.Name; }
Evaluation\Evaluator.cs (5)
472ProjectPropertyGroupTaskPropertyInstance property = new ProjectPropertyGroupTaskPropertyInstance(propertyElement.Name, propertyElement.Value, propertyElement.Condition, propertyElement.Location, propertyElement.ConditionLocation); 1283((IDictionary<string, ProjectPropertyInstance>)_data.GlobalPropertiesDictionary).ContainsKey(propertyElement.Name) && 1284!_data.GlobalPropertiesToTreatAsLocal.Contains(propertyElement.Name)) 1286_evaluationLoggingContext.LogComment(MessageImportance.Low, "OM_GlobalProperty", propertyElement.Name); 1300_expander.PropertiesUseTracker.CurrentlyEvaluatingPropertyElementName = propertyElement.Name;
Evaluation\PropertyTrackingEvaluatorDataWrapper.cs (1)
114P? originalProperty = _wrapped.GetProperty(propertyElement.Name);
Instance\ProjectInstance.cs (1)
1810ProjectPropertyInstance property = ProjectPropertyInstance.Create(propertyElement.Name, evaluatedValueEscaped, false /* may not be reserved */, _isImmutable);
Microsoft.Build.Engine.OM.UnitTests (14)
Construction\ProjectPropertyElement_Tests.cs (4)
28Assert.Equal("p", property.Name); 52Assert.Equal("p", property.Name); 192Assert.Equal("p2", property.Name); 206Assert.Equal("p", property.Name);
Construction\ProjectPropertyGroupElement_Tests.cs (2)
69Assert.Equal("p1", properties[0].Name); 70Assert.Equal("p2", properties[1].Name);
Construction\ProjectRootElement_Tests.cs (1)
834Assert.Equal("q", properties[1].Name);
ObjectModelRemoting\Helpers\ViewValidation.construction.cs (2)
935Assert.Equal(realXml.Name, viewXml.Name);
ObjectModelRemoting\LinkedConstructionModify_Tests.cs (5)
93xmlPair.Add2NewChildrenWithVerify<ProjectPropertyElement>("NewProp", (p, pn) => p.AddProperty(pn, $"Value{pn}"), (prop, pn) => prop.Name == pn, out var itemProp1, out var itemProp2); 717var prop = propGrp.AddNewChaildWithVerify<ProjectPropertyElement>(ObjectType.View, "prop", (pg, n) => pg.AddProperty(n, $"value{n}"), (p, n) => p.Name == n); 720prop.VerifySetter("newName", (p) => p.Name, (p, v) => p.Name = v); 734propGrp.Add2NewChildrenWithVerify<ProjectPropertyElement>("prop", (pg, n) => pg.AddProperty(n, $"value{n}"), (p, n) => p.Name == n, out var prop1, out var prop2); 738propGrp.Add2NewChildrenWithVerify<ProjectPropertyElement>("setnewprop", (pg, n) => pg.SetProperty(n, $"value{n}"), (p, n) => p.Name == n, out var setNewProp1, out var setNewProp2);