Implemented interface members:
property
EvaluatedInclude
Microsoft.Build.Evaluation.IItem.EvaluatedInclude
property
EvaluatedInclude
Microsoft.Build.Framework.IItemData.EvaluatedInclude
146 references to EvaluatedInclude
dotnet-openapi (3)
Commands\BaseCommand.cs (1)
156
var fileItems = items.Where(i => string.Equals(GetFullPath(i.
EvaluatedInclude
), GetFullPath(sourceFile), StringComparison.Ordinal));
Commands\RefreshCommand.cs (1)
49
return item.
EvaluatedInclude
;
Commands\RemoveCommand.cs (1)
58
var include = item.
EvaluatedInclude
;
Microsoft.Build (7)
Definition\Project.cs (3)
2728
return GetItemProvenance(item.
EvaluatedInclude
, itemElementsAbove);
4369
ItemsByEvaluatedIncludeCache.Add(item.
EvaluatedInclude
, item);
4588
ItemsByEvaluatedIncludeCache.Remove(item.
EvaluatedInclude
, item);
Instance\ProjectInstance.cs (3)
3299
multiDictionary.Add(item.
EvaluatedInclude
, projectItemToInstanceMap[item]);
3373
evaluatedIncludeEscaped ??= item.
EvaluatedInclude
;
3375
evaluatedIncludeBeforeWildcardExpansionEscaped ??= item.
EvaluatedInclude
;
ObjectModelRemoting\DefinitionObjectsLinks\ProjectItemLink.cs (1)
29
/// Access to remote <see cref="ProjectItem.
EvaluatedInclude
"/>.
Microsoft.Build.Engine.OM.UnitTests (98)
Construction\ProjectFormatting_Tests.cs (2)
286
var itemToRemove = project.GetItems("Compile").Single(item => item.
EvaluatedInclude
== "Class2.cs");
325
var itemToEdit = project.GetItems("Compile").Single(item => item.
EvaluatedInclude
== "Class2.cs");
Construction\ProjectItemElement_Tests.cs (1)
980
Assert.Equal("i2", Helpers.GetFirst(project.Items).
EvaluatedInclude
);
Definition\DefinitionEditing_Tests.cs (24)
166
Assert.Equal("i1", items[0].
EvaluatedInclude
);
167
Assert.Equal("i1", Helpers.GetFirst(project.GetItems("i")).
EvaluatedInclude
);
193
Assert.Equal("i(1)", items[0].
EvaluatedInclude
);
194
Assert.Equal("i(1)", Helpers.GetFirst(project.GetItems("i")).
EvaluatedInclude
);
272
Assert.Equal("v1", Helpers.GetFirst(project.Items).
EvaluatedInclude
);
294
Assert.Equal(paths[0], items[0].
EvaluatedInclude
);
295
Assert.Equal(paths[1], items[1].
EvaluatedInclude
);
319
Assert.Equal("h1", item.
EvaluatedInclude
);
895
Assert.Equal("v1", item.
EvaluatedInclude
);
923
Assert.Equal("h1", item.
EvaluatedInclude
);
949
Assert.Equal("@(h)", item.
EvaluatedInclude
);
979
Assert.Equal("@(h)", item.
EvaluatedInclude
);
1080
Assert.Equal("$(p)", (Helpers.MakeList(project.Items))[1].
EvaluatedInclude
);
1441
Assert.Equal("i1", item.
EvaluatedInclude
);
1959
Assert.Equal("a", items[0].
EvaluatedInclude
);
1960
Assert.Equal("b", items[1].
EvaluatedInclude
);
2090
Assert.Equal("i1", items[0].
EvaluatedInclude
);
2091
Assert.Equal("i1", Helpers.GetFirst(project.GetItems("i")).
EvaluatedInclude
);
2117
Assert.Equal("i(1)", items[0].
EvaluatedInclude
);
2118
Assert.Equal("i(1)", Helpers.GetFirst(project.GetItems("i")).
EvaluatedInclude
);
2196
Assert.Equal("v1", Helpers.GetFirst(project.Items).
EvaluatedInclude
);
2218
Assert.Equal(paths[0], items[0].
EvaluatedInclude
);
2219
Assert.Equal(paths[1], items[1].
EvaluatedInclude
);
2243
Assert.Equal("h1", item.
EvaluatedInclude
);
Definition\EditingElementsReferencedByOrReferences_Tests.cs (12)
52
Assert.Equal("Y", items.First().
EvaluatedInclude
); // "Wrong evaluated include after changing type"
69
ProjectItem item = project.GetItems("I").Where(i => i.
EvaluatedInclude
== "Y").First();
98
ProjectItem item = project.GetItems("I").Where(i => i.
EvaluatedInclude
== "Y").First();
137
ProjectItem item1 = project.GetItems("I").Where(i => i.
EvaluatedInclude
== "X").First();
140
ProjectItem item2 = project.GetItems("I").Where(i => i.
EvaluatedInclude
== "Y").First();
188
ProjectItem item1 = project.GetItems("I").Where(i => i.
EvaluatedInclude
== "X").First();
210
item1 = project.GetItems("I").Where(i => i.
EvaluatedInclude
== "X").First();
212
ProjectItem item2 = project.GetItems("I").Where(i => i.
EvaluatedInclude
== "Y").First();
240
ProjectItem item1 = project.GetItems("I").Where(i => i.
EvaluatedInclude
== "X").First();
244
ProjectItem item2 = project.GetItems("I").Where(i => i.
EvaluatedInclude
== "Y").First();
264
item1 = project.GetItems("I").Where(i => i.
EvaluatedInclude
== "X").First();
266
item2 = project.GetItems("I").Where(i => i.
EvaluatedInclude
== "Y").First();
Definition\Project_Tests.cs (24)
605
items[0].
EvaluatedInclude
.ShouldBe("i1");
606
items[1].
EvaluatedInclude
.ShouldBe("v2X");
607
items[2].
EvaluatedInclude
.ShouldBe("i3");
608
items[3].
EvaluatedInclude
.ShouldBe("i4");
653
project.GetItems("BuiltProjectOutputGroupKeyOutput").First().
EvaluatedInclude
.ShouldBe(
685
project.GetItems("BuiltProjectOutputGroupKeyOutput").First().
EvaluatedInclude
.ShouldBe(Path.Combine(Directory.GetCurrentDirectory(), @"obj\i386\foo.dll"));
690
project.GetItems("BuiltProjectOutputGroupKeyOutput").First().
EvaluatedInclude
.ShouldBe(Path.Combine(Directory.GetCurrentDirectory(), @"obj/i386/foo.dll"));
721
project.GetItems("BuiltProjectOutputGroupKeyOutput").First().
EvaluatedInclude
.ShouldBe(Path.Combine(FileUtilities.TempFileDirectory, "obj", "i386").Substring(RootPrefixLength) + Path.DirectorySeparatorChar);
757
project.GetItems("BuiltProjectOutputGroupKeyOutput").First().
EvaluatedInclude
.ShouldBe(Path.Combine(FileUtilities.TempFileDirectory, "obj", "i386").Substring(RootPrefixLength) + Path.DirectorySeparatorChar);
796
project.GetItems("BuiltProjectOutputGroupKeyOutput").First().
EvaluatedInclude
.ShouldBe(Path.Combine(FileUtilities.TempFileDirectory /* remove c:\ */, "obj", "i386"));
1504
project.GetItems("I").First().
EvaluatedInclude
.ShouldBe(i);
1590
project.GetItems("I").First().
EvaluatedInclude
.ShouldBe(i);
1674
item.
EvaluatedInclude
.ShouldBe("i1");
1697
item.
EvaluatedInclude
.ShouldBe("i&1");
1858
Helpers.MakeList(project.GetItems("i"))[0].
EvaluatedInclude
.ShouldBe("i1");
1894
Helpers.MakeList(project.GetItems("i"))[0].
EvaluatedInclude
.ShouldBe("i2");
1930
Helpers.MakeList(project.GetItems("i"))[0].
EvaluatedInclude
.ShouldBe("i2");
1980
project.GetItems("i").ElementAt(0).
EvaluatedInclude
.ShouldBe("v1_v2");
1982
project.GetItems("j").ElementAt(0).
EvaluatedInclude
.ShouldBe("v1_v2");
2512
Helpers.GetFirst(items).
EvaluatedInclude
.ShouldBe(evaluatedInclude);
4350
var itemsOfValue = p.Items.Where(i => i.
EvaluatedInclude
.Equals(itemValue));
4426
items[0].
EvaluatedInclude
.ShouldBe("i1");
4427
items[1].
EvaluatedInclude
.ShouldBe("v2X");
4429
items[2].
EvaluatedInclude
.ShouldBe("i3");
Definition\ProjectItem_Tests.cs (28)
103
Assert.Equal("i1", item.
EvaluatedInclude
);
419
Assert.Equal("i0", items[0].
EvaluatedInclude
);
421
Assert.Equal("i2", items[2].
EvaluatedInclude
);
468
Assert.Equal("a", items[0].
EvaluatedInclude
);
1973
Assert.Equal("i2", item.
EvaluatedInclude
);
2000
Assert.Equal(Path.GetFileName(sourceFile), projectItem.
EvaluatedInclude
);
2001
Assert.Same(projectItem, project.GetItemsByEvaluatedInclude(projectItem.
EvaluatedInclude
).Single());
2006
Assert.Equal(Path.GetFileName(renamedSourceFile), projectItem.
EvaluatedInclude
);
2007
Assert.Same(projectItem, project.GetItemsByEvaluatedInclude(projectItem.
EvaluatedInclude
).Single());
2320
Assert.Equal("a", items[0].
EvaluatedInclude
);
2332
Assert.Equal(@"a;a", string.Join(";", items.Select(i => i.
EvaluatedInclude
)));
2343
Assert.Equal(@"a.txt;b.cs", string.Join(";", items.Select(i => i.
EvaluatedInclude
)));
2355
Assert.Equal(@"a;c", string.Join(";", items.Select(i => i.
EvaluatedInclude
)));
2385
Assert.Equal(@"a;b", string.Join(";", project.Items.Select(i => i.
EvaluatedInclude
)));
2402
Assert.Equal(@"a;b;c", string.Join(";", project.ItemsIgnoringCondition.Select(i => i.
EvaluatedInclude
)));
2424
items.Select(i => i.
EvaluatedInclude
).ShouldBe(new[] { "a2", "d2" });
2451
items.Select(i => i.
EvaluatedInclude
).ShouldBe(new[] { "a2", "d2" });
2485
items.Select(i => i.
EvaluatedInclude
).ShouldBe(new[] { "a2", "b2", "c2", "g2" });
2498
items.Select(i => i.
EvaluatedInclude
).ShouldBe(new[] { "b2", "c2", "g2" });
2528
items.Select(i => i.
EvaluatedInclude
).ShouldBe(new[] { "../foo.txt", "/foo/bar.txt" });
2560
items.Select(i => i.
EvaluatedInclude
).ShouldBe(new[] { "a2", "d2" });
2597
items.Select(i => i.
EvaluatedInclude
).ShouldBe(new[] { "a2", "c2", "d2" });
2627
items.Select(i => i.
EvaluatedInclude
).ShouldBe(new[] { "a2", "b2", "c2", "d2" });
2658
items.ElementAt(0).
EvaluatedInclude
.ShouldBe("a2");
2659
items.ElementAt(1).
EvaluatedInclude
.ShouldBe("c2");
2660
items.ElementAt(2).
EvaluatedInclude
.ShouldBe("d2");
3109
items[0].
EvaluatedInclude
.ShouldBe("InitialValue");
3363
var lastItemMetadata = items.Last(i => i.ItemType.Equals(itemType) && i.
EvaluatedInclude
.Equals(itemValue)).GetMetadataValue("m");
Definition\ProjectItemDefinition_Tests.cs (1)
420
Assert.Equal(".foo", item.
EvaluatedInclude
);
Definition\ProtectImports_Tests.cs (2)
260
Assert.Equal(NewValue, item.
EvaluatedInclude
); // "Item in project didn't change name."
274
Assert.Equal(NewValue, item.
EvaluatedInclude
); // "Item in project didn't change name."
ObjectModelRemoting\Helpers\ViewValidation.evaluation.cs (3)
35
Assert.Same(result, this.GetSingleItemWithVerify(where, result.
EvaluatedInclude
));
220
Assert.Equal(real.
EvaluatedInclude
, view.
EvaluatedInclude
);
ObjectModelRemoting\RemoteProjectsProviderMock\EvaluationLinkMocks\MockProjectItemLink.cs (1)
24
public string EvaluatedInclude => this.Source.
EvaluatedInclude
;
Microsoft.Build.Engine.UnitTests (23)
Definition\ItemDefinitionGroup_Tests.cs (1)
1868
if (item.
EvaluatedInclude
== itemInclude)
EscapingInProjects_Tests.cs (11)
369
Assert.Equal("foo%3Bbar.weirdo", newItems.First().
EvaluatedInclude
);
481
Assert.Equal("foo%3bbar.weirdo", newItems.First().
EvaluatedInclude
); // "Newly added item should have correct EvaluatedInclude"
523
Assert.Equal("foo.AAA%3bBBB", newItems.First().
EvaluatedInclude
); // "Newly added item should have correct EvaluatedInclude"
883
Assert.Equal("a", items.ElementAt(0).
EvaluatedInclude
);
884
Assert.Equal("b;c", items.ElementAt(1).
EvaluatedInclude
);
885
Assert.Equal("foo;bar", items.ElementAt(2).
EvaluatedInclude
);
915
Assert.Equal("a", items.ElementAt(0).
EvaluatedInclude
);
916
Assert.Equal("b;c", items.ElementAt(1).
EvaluatedInclude
);
917
Assert.Equal("foo", items.ElementAt(2).
EvaluatedInclude
);
918
Assert.Equal("bar", items.ElementAt(3).
EvaluatedInclude
);
1825
if (String.Equals(item.
EvaluatedInclude
, oldEvaluatedInclude, StringComparison.OrdinalIgnoreCase))
Evaluation\Evaluator_Tests.cs (7)
1781
Assert.Equal("h1", item.
EvaluatedInclude
);
2023
Assert.Equal("i1", project.AllEvaluatedItems.ElementAt(0).
EvaluatedInclude
);
2025
Assert.Equal("j1", project.AllEvaluatedItems.ElementAt(1).
EvaluatedInclude
);
2027
Assert.Equal("i3", project.AllEvaluatedItems.ElementAt(2).
EvaluatedInclude
);
2028
Assert.Equal("i1", project.AllEvaluatedItems.ElementAt(3).
EvaluatedInclude
);
2030
Assert.Equal("i5", project.AllEvaluatedItems.ElementAt(4).
EvaluatedInclude
);
2031
Assert.Equal("i10", project.AllEvaluatedItems.ElementAt(5).
EvaluatedInclude
);
Evaluation\ItemEvaluation_Tests.cs (1)
557
Assert.Equal("0;6;7;8;9", String.Join(";", items.Select(i => i.
EvaluatedInclude
)));
Evaluation\SdkResultEvaluation_Tests.cs (2)
97
item.
EvaluatedInclude
.ShouldBe("ItemValueFromSdkResolver");
456
item.
EvaluatedInclude
.ShouldBe("ItemValue" + specialString);
Parser_Tests.cs (1)
580
Assert.Equal("bar", projectItem.
EvaluatedInclude
);
Microsoft.Build.UnitTests.Shared (3)
ObjectModelHelpers.cs (3)
113
Assert.Equal(itemInclude.ToUpperInvariant(), item.
EvaluatedInclude
.ToUpperInvariant());
219
public string EvaluatedInclude => _projectInstance.
EvaluatedInclude
;
1094
return string.Join(itemSeparator, project.Items.Where(i => i.ItemType.Equals(itemType)).Select(i => i.
EvaluatedInclude
));
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (12)
MSBuild\ProjectFile\ProjectFile.cs (12)
314
_documents[GetAbsolutePathRelativeToProject(item.
EvaluatedInclude
)] = item;
392
var item = items.FirstOrDefault(it => PathUtilities.PathsEqual(it.
EvaluatedInclude
, relativePath)
393
|| PathUtilities.PathsEqual(it.
EvaluatedInclude
, filePath));
441
item = references.FirstOrDefault(it => string.Compare(it.
EvaluatedInclude
, shortAssemblyName, StringComparison.OrdinalIgnoreCase) == 0);
446
item = references.FirstOrDefault(it => string.Compare(it.
EvaluatedInclude
, fullAssemblyName, StringComparison.OrdinalIgnoreCase) == 0);
453
item = references.FirstOrDefault(it => PathUtilities.PathsEqual(it.
EvaluatedInclude
, filePath)
454
|| PathUtilities.PathsEqual(it.
EvaluatedInclude
, relativePath)
462
var items = references.Where(it => it.
EvaluatedInclude
.StartsWith(partialName, StringComparison.OrdinalIgnoreCase)).ToList();
522
item = references.First(it => PathUtilities.PathsEqual(it.
EvaluatedInclude
, relativePath)
523
|| PathUtilities.PathsEqual(it.
EvaluatedInclude
, projectFilePath));
552
var item = analyzers.FirstOrDefault(it => PathUtilities.PathsEqual(it.
EvaluatedInclude
, relativePath)
553
|| PathUtilities.PathsEqual(it.
EvaluatedInclude
, fullPath));