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