35 references to Items
Microsoft.Build (6)
BackEnd\Shared\BuildResult.cs (2)
115/// <see cref="ProjectInstance.Items"/> from it. No other operation is guaranteed to be supported. 387/// <see cref="ProjectInstance.Items"/> from it. Any other operation is not guaranteed to be supported.
Graph\ProjectGraphNode.cs (1)
56$"{truncatedProjectFile}, #GlobalProps={ProjectInstance.GlobalProperties.Count}, #Props={ProjectInstance.Properties.Count}, #Items={ProjectInstance.Items.Count}, #in={ReferencingProjects.Count}, #out={ProjectReferences.Count}";
Instance\ProjectInstance.cs (3)
718foreach (ProjectItemInstance item in that.Items) 809_items = new ItemDictionary<ProjectItemInstance>(that.Items.Count); 2182/// Replaces the project state (<see cref="GlobalProperties"/>, <see cref="Properties"/> and <see cref="Items"/>) with that
Microsoft.Build.Engine.OM.UnitTests (19)
Definition\Project_Tests.cs (1)
1750count = Helpers.Count(projectInstance.Items);
Definition\ProjectItem_Tests.cs (1)
3753var itemB = projectInstance.Items.Single(i => i.ItemType == "B").EvaluatedInclude;
Instance\ProjectInstance_Tests.cs (17)
92foreach (ProjectItemInstance item in p.Items) 113foreach (ProjectItemInstance item in p.Items) 137foreach (ProjectItemInstance item in p.Items) 693Helpers.VerifyAssertThrowsInvalidOperation(delegate () { instance.RemoveItem(Helpers.GetFirst(instance.Items)); }); 737Helpers.VerifyAssertThrowsInvalidOperation(delegate () { Helpers.GetFirst(instance.Items).EvaluatedInclude = "x"; }); 748Helpers.VerifyAssertThrowsInvalidOperation(delegate () { ((ITaskItem2)Helpers.GetFirst(instance.Items)).EvaluatedIncludeEscaped = "x"; }); 759Helpers.VerifyAssertThrowsInvalidOperation(delegate () { ((ITaskItem2)Helpers.GetFirst(instance.Items)).ItemSpec = "x"; }); 770Helpers.VerifyAssertThrowsInvalidOperation(delegate () { ((ITaskItem2)Helpers.GetFirst(instance.Items)).SetMetadataValueLiteral("a", "b"); }); 781Helpers.VerifyAssertThrowsInvalidOperation(delegate () { Helpers.GetFirst(instance.Items).SetMetadata(new List<KeyValuePair<string, string>>()); }); 792Helpers.VerifyAssertThrowsInvalidOperation(delegate () { Helpers.GetFirst(instance.Items).SetMetadata("a", "b"); }); 803Helpers.VerifyAssertThrowsInvalidOperation(delegate () { Helpers.GetFirst(instance.Items).RemoveMetadata("n"); }); 875Helpers.GetFirst(instance.Items).EvaluatedInclude = "new"; 899Helpers.VerifyAssertThrowsInvalidOperation(delegate () { Helpers.GetFirst(instance.Items).EvaluatedInclude = "new"; }); 924Helpers.VerifyAssertThrowsInvalidOperation(delegate () { Helpers.GetFirst(instance.Items).EvaluatedInclude = "new"; }); 946Helpers.VerifyAssertThrowsInvalidOperation(delegate () { Helpers.GetFirst(instance.Items).EvaluatedInclude = "new"; }); 963Helpers.GetFirst(instance.Items).EvaluatedInclude = "new"; 980Helpers.GetFirst(instance.Items).EvaluatedInclude = "new";
Microsoft.Build.Engine.UnitTests (10)
BackEnd\BuildManager_Tests.cs (2)
530result.ProjectStateAfterBuild.Items.Count.ShouldBe(4); 2207foreach (var item in instance.Items)
BackEnd\IntrinsicTask_Tests.cs (1)
3467Assert.Equal(2, instance.Items.Count);
BackEnd\TargetBuilder_Tests.cs (1)
1540Lookup lookup = new Lookup(new ItemDictionary<ProjectItemInstance>(project.Items), new PropertyDictionary<ProjectPropertyInstance>(project.Properties));
BackEnd\TargetEntry_Tests.cs (3)
85Lookup lookup = new Lookup(new ItemDictionary<ProjectItemInstance>(project.Items), new PropertyDictionary<ProjectPropertyInstance>(project.Properties)); 115Lookup lookup = new Lookup(new ItemDictionary<ProjectItemInstance>(project.Items), new PropertyDictionary<ProjectPropertyInstance>(project.Properties)); 1027Lookup lookup = new Lookup(new ItemDictionary<ProjectItemInstance>(project.Items), new PropertyDictionary<ProjectPropertyInstance>(project.Properties));
Construction\SolutionProjectGenerator_Tests.cs (1)
1242foreach (ITaskItem item in instance.Items)
TestComparers\ProjectInstanceModelTestComparers.cs (2)
32Assert.Equal(x.Items.ToArray(), y.Items.ToArray(), ProjectItemInstance.ProjectItemInstanceEqualityComparer.Default);