1 write to ElementName
Microsoft.Build.Framework (1)
Profiler\EvaluationLocation.cs (1)
151ElementName = elementName;
30 references to ElementName
Microsoft.Build (5)
Logging\BinaryLogger\BuildEventArgsWriter.cs (1)
1290WriteDeduplicatedString(item.ElementName);
Logging\EvaluationLocationIdAgnosticComparer.cs (3)
32x.ElementName == y.ElementName && 45hashCode = (hashCode * -1521134295) + EqualityComparer<string>.Default.GetHashCode(obj.ElementName);
LogMessagePacketBase.cs (1)
1045string elementName = evaluationLocation.ElementName;
Microsoft.Build.Engine.UnitTests (19)
EvaluationProfiler_Tests.cs (19)
109Assert.Contains(profiledElements, location => location.ElementName == elementName); 141Assert.Contains(profiledElements, location => location.ElementName == elementName); 155Assert.Single(profiledElements.Where(location => location.ElementName == "PropertyGroup")); 156Assert.Single(profiledElements.Where(location => location.ElementName == "appname")); 159Assert.Single(profiledElements.Where(location => location.ElementName == "ItemDefinitionGroup")); 160Assert.Single(profiledElements.Where(location => location.ElementName == "CSFile" & location.EvaluationPass == EvaluationPass.ItemDefinitionGroups)); 163Assert.Single(profiledElements.Where(location => location.ElementName == "ItemGroup")); 164Assert.Equal(2, profiledElements.Count(location => location.ElementName == "CSFile" & location.EvaluationPass == EvaluationPass.Items)); 165Assert.Single(profiledElements.Where(location => location.ElementName == "Condition" & location.EvaluationPass == EvaluationPass.Items)); 166Assert.Equal(2, profiledElements.Count(location => location.ElementName == "CSFile" & location.EvaluationPass == EvaluationPass.LazyItems)); 173Assert.Equal(2, profiledElements.Count(location => location.ElementName == "Message")); 174Assert.Single(profiledElements.Where(location => location.ElementName == "Target")); 195Assert.Equal(2, profiledElements.Count(location => location.ElementName == "TestGlob" & location.EvaluationPass == EvaluationPass.Items)); 196Assert.Equal(2, profiledElements.Count(location => location.ElementName == "TestGlob" & location.EvaluationPass == EvaluationPass.LazyItems)); 229var itemGroup = profiledElements.Find(e => e.ElementName == "ItemGroup"); 230var testItem = profiledElements.Find(e => e.ElementName == "Test" && e.EvaluationPass == EvaluationPass.Items); 236var lazyTestItem = profiledElements.Find(e => e.ElementName == "Test" && e.EvaluationPass == EvaluationPass.LazyItems); 241var target = profiledElements.Find(e => e.ElementName == "Target"); 242var messageTarget = profiledElements.Find(e => e.ElementName == "Message");
Microsoft.Build.Framework (6)
Profiler\EvaluationLocation.cs (6)
189this.File, this.Line, this.ElementName, this.ElementDescription, this.Kind); 202this.File, this.Line, this.ElementName, this.ElementDescription, this.Kind); 241ElementName == other.ElementName && 252$"{Id}\t{ParentId?.ToString() ?? string.Empty}\t{EvaluationPassDescription ?? string.Empty}\t{File ?? string.Empty}\t{Line?.ToString() ?? string.Empty}\t{ElementName ?? string.Empty}\tDescription:{ElementDescription}\t{this.EvaluationPassDescription}"; 265hashCode = (hashCode * -1521134295) + EqualityComparer<string>.Default.GetHashCode(ElementName);