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)
1292
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)
986
string elementName = evaluationLocation.
ElementName
;
Microsoft.Build.Engine.UnitTests (19)
EvaluationProfiler_Tests.cs (19)
108
Assert.Contains(profiledElements, location => location.
ElementName
== elementName);
140
Assert.Contains(profiledElements, location => location.
ElementName
== elementName);
154
Assert.Single(profiledElements.Where(location => location.
ElementName
== "PropertyGroup"));
155
Assert.Single(profiledElements.Where(location => location.
ElementName
== "appname"));
158
Assert.Single(profiledElements.Where(location => location.
ElementName
== "ItemDefinitionGroup"));
159
Assert.Single(profiledElements.Where(location => location.
ElementName
== "CSFile" & location.EvaluationPass == EvaluationPass.ItemDefinitionGroups));
162
Assert.Single(profiledElements.Where(location => location.
ElementName
== "ItemGroup"));
163
Assert.Equal(2, profiledElements.Count(location => location.
ElementName
== "CSFile" & location.EvaluationPass == EvaluationPass.Items));
164
Assert.Single(profiledElements.Where(location => location.
ElementName
== "Condition" & location.EvaluationPass == EvaluationPass.Items));
165
Assert.Equal(2, profiledElements.Count(location => location.
ElementName
== "CSFile" & location.EvaluationPass == EvaluationPass.LazyItems));
172
Assert.Equal(2, profiledElements.Count(location => location.
ElementName
== "Message"));
173
Assert.Single(profiledElements.Where(location => location.
ElementName
== "Target"));
194
Assert.Equal(2, profiledElements.Count(location => location.
ElementName
== "TestGlob" & location.EvaluationPass == EvaluationPass.Items));
195
Assert.Equal(2, profiledElements.Count(location => location.
ElementName
== "TestGlob" & location.EvaluationPass == EvaluationPass.LazyItems));
228
var itemGroup = profiledElements.Find(e => e.
ElementName
== "ItemGroup");
229
var testItem = profiledElements.Find(e => e.
ElementName
== "Test" && e.EvaluationPass == EvaluationPass.Items);
235
var lazyTestItem = profiledElements.Find(e => e.
ElementName
== "Test" && e.EvaluationPass == EvaluationPass.LazyItems);
240
var target = profiledElements.Find(e => e.
ElementName
== "Target");
241
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
);