35 references to Items
Microsoft.Build (6)
BackEnd\Shared\BuildResult.cs (2)
134
/// <see cref="ProjectInstance.
Items
"/> from it. No other operation is guaranteed to be supported.
410
/// <see cref="ProjectInstance.
Items
"/> from it. Any other operation is not guaranteed to be supported.
Graph\ProjectGraphNode.cs (1)
55
$"{truncatedProjectFile}, #GlobalProps={ProjectInstance.GlobalProperties.Count}, #Props={ProjectInstance.Properties.Count}, #Items={ProjectInstance.
Items
.Count}, #in={ReferencingProjects.Count}, #out={ProjectReferences.Count}";
Instance\ProjectInstance.cs (3)
720
foreach (ProjectItemInstance item in that.
Items
)
811
_items = new ItemDictionary<ProjectItemInstance>(that.
Items
.Count);
2327
/// 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)
1766
count = Helpers.Count(projectInstance.
Items
);
Definition\ProjectItem_Tests.cs (1)
3757
var itemB = projectInstance.
Items
.Single(i => i.ItemType == "B").EvaluatedInclude;
Instance\ProjectInstance_Tests.cs (17)
91
foreach (ProjectItemInstance item in p.
Items
)
112
foreach (ProjectItemInstance item in p.
Items
)
136
foreach (ProjectItemInstance item in p.
Items
)
692
Helpers.VerifyAssertThrowsInvalidOperation(delegate () { instance.RemoveItem(Helpers.GetFirst(instance.
Items
)); });
736
Helpers.VerifyAssertThrowsInvalidOperation(delegate () { Helpers.GetFirst(instance.
Items
).EvaluatedInclude = "x"; });
747
Helpers.VerifyAssertThrowsInvalidOperation(delegate () { ((ITaskItem2)Helpers.GetFirst(instance.
Items
)).EvaluatedIncludeEscaped = "x"; });
758
Helpers.VerifyAssertThrowsInvalidOperation(delegate () { ((ITaskItem2)Helpers.GetFirst(instance.
Items
)).ItemSpec = "x"; });
769
Helpers.VerifyAssertThrowsInvalidOperation(delegate () { ((ITaskItem2)Helpers.GetFirst(instance.
Items
)).SetMetadataValueLiteral("a", "b"); });
780
Helpers.VerifyAssertThrowsInvalidOperation(delegate () { Helpers.GetFirst(instance.
Items
).SetMetadata(new List<KeyValuePair<string, string>>()); });
791
Helpers.VerifyAssertThrowsInvalidOperation(delegate () { Helpers.GetFirst(instance.
Items
).SetMetadata("a", "b"); });
802
Helpers.VerifyAssertThrowsInvalidOperation(delegate () { Helpers.GetFirst(instance.
Items
).RemoveMetadata("n"); });
874
Helpers.GetFirst(instance.
Items
).EvaluatedInclude = "new";
898
Helpers.VerifyAssertThrowsInvalidOperation(delegate () { Helpers.GetFirst(instance.
Items
).EvaluatedInclude = "new"; });
923
Helpers.VerifyAssertThrowsInvalidOperation(delegate () { Helpers.GetFirst(instance.
Items
).EvaluatedInclude = "new"; });
945
Helpers.VerifyAssertThrowsInvalidOperation(delegate () { Helpers.GetFirst(instance.
Items
).EvaluatedInclude = "new"; });
962
Helpers.GetFirst(instance.
Items
).EvaluatedInclude = "new";
979
Helpers.GetFirst(instance.
Items
).EvaluatedInclude = "new";
Microsoft.Build.Engine.UnitTests (10)
BackEnd\BuildManager_Tests.cs (2)
528
result.ProjectStateAfterBuild.
Items
.Count.ShouldBe(4);
2271
foreach (var item in instance.
Items
)
BackEnd\IntrinsicTask_Tests.cs (1)
3544
Assert.Equal(2, instance.
Items
.Count);
BackEnd\TargetBuilder_Tests.cs (1)
1571
Lookup lookup = new Lookup(new ItemDictionary<ProjectItemInstance>(project.
Items
), new PropertyDictionary<ProjectPropertyInstance>(project.Properties));
BackEnd\TargetEntry_Tests.cs (3)
84
Lookup lookup = new Lookup(new ItemDictionary<ProjectItemInstance>(project.
Items
), new PropertyDictionary<ProjectPropertyInstance>(project.Properties));
114
Lookup lookup = new Lookup(new ItemDictionary<ProjectItemInstance>(project.
Items
), new PropertyDictionary<ProjectPropertyInstance>(project.Properties));
1029
Lookup lookup = new Lookup(new ItemDictionary<ProjectItemInstance>(project.
Items
), new PropertyDictionary<ProjectPropertyInstance>(project.Properties));
Construction\SolutionProjectGenerator_Tests.cs (1)
1324
foreach (ITaskItem item in instance.
Items
)
TestComparers\ProjectInstanceModelTestComparers.cs (2)
32
Assert.Equal(x.
Items
.ToArray(), y.
Items
.ToArray(), ProjectItemInstance.ProjectItemInstanceEqualityComparer.Default);