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