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