130 references to ProjectItemInstance
Microsoft.Build (7)
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (4)
1395newItem = new ProjectItemInstance(_projectInstance, outputTargetName, outputAsProjectItem.IncludeEscaped, parameterLocationEscaped); 1404newItem = new ProjectItemInstance(_projectInstance, outputTargetName, outputAsITaskItem2.EvaluatedIncludeEscaped, parameterLocationEscaped); 1413newItem = new ProjectItemInstance(_projectInstance, outputTargetName, EscapingUtilities.Escape(output.ItemSpec), parameterLocationEscaped); 1521_batchBucket.Lookup.AddNewItem(new ProjectItemInstance(_projectInstance, outputTargetName, EscapingUtilities.Escape(output), EscapingUtilities.Escape(parameterLocation.File)));
Graph\GraphBuilder.cs (1)
235var stubItem = new ProjectItemInstance(
Instance\ProjectInstance.cs (1)
1953ProjectItemInstance item = new ProjectItemInstance(this, itemType, evaluatedInclude, this.FullPath);
Instance\ProjectItemInstance.cs (1)
2020ProjectItemInstance item = new ProjectItemInstance(_project, ItemType, include, definingProject);
Microsoft.Build.Engine.UnitTests (123)
BackEnd\BatchingEngine_Tests.cs (16)
37items.Add(new ProjectItemInstance(project, "File", "a.foo", project.FullPath)); 38items.Add(new ProjectItemInstance(project, "File", "b.foo", project.FullPath)); 39items.Add(new ProjectItemInstance(project, "File", "c.foo", project.FullPath)); 40items.Add(new ProjectItemInstance(project, "File", "d.foo", project.FullPath)); 41items.Add(new ProjectItemInstance(project, "File", "e.foo", project.FullPath)); 45items.Add(new ProjectItemInstance(project, "Doc", "a.doc", project.FullPath)); 46items.Add(new ProjectItemInstance(project, "Doc", "b.doc", project.FullPath)); 47items.Add(new ProjectItemInstance(project, "Doc", "c.doc", project.FullPath)); 48items.Add(new ProjectItemInstance(project, "Doc", "d.doc", project.FullPath)); 49items.Add(new ProjectItemInstance(project, "Doc", "e.doc", project.FullPath)); 135ProjectItemInstance a = new ProjectItemInstance(project, "File", "a.foo", project.FullPath); 136ProjectItemInstance b = new ProjectItemInstance(project, "File", "b.foo", project.FullPath); 172ProjectItemInstance a = new ProjectItemInstance(project, "File", "a.foo", project.FullPath); 174ProjectItemInstance b = new ProjectItemInstance(project, "File", "b.foo", project.FullPath); 232items.Add(new ProjectItemInstance(project, "File", "a.foo", project.FullPath)); 233items.Add(new ProjectItemInstance(project, "File", "b.foo", project.FullPath)); // Need at least two items for this test case to ensure multiple buckets might be possible
BackEnd\IntrinsicTask_Tests.cs (4)
3926ProjectItemInstance item1 = new ProjectItemInstance(project, "i0", "a1", project.FullPath); 3927ProjectItemInstance item2 = new ProjectItemInstance(project, "i0", "a2", project.FullPath); 3928ProjectItemInstance item3 = new ProjectItemInstance(project, "i0", "a3", project.FullPath); 3929ProjectItemInstance item4 = new ProjectItemInstance(project, "i0", "a4", project.FullPath);
BackEnd\Lookup_Tests.cs (33)
29table1.Add(new ProjectItemInstance(project, "i1", "a1", project.FullPath)); 30table1.Add(new ProjectItemInstance(project, "i2", "a%3b1", project.FullPath)); 34lookup.PopulateWithItem(new ProjectItemInstance(project, "i1", "a2", project.FullPath)); 35lookup.PopulateWithItem(new ProjectItemInstance(project, "i2", "a%282", project.FullPath)); 51table1.Add(new ProjectItemInstance(project, "i1", "a1", project.FullPath)); 52table1.Add(new ProjectItemInstance(project, "i2", "a%3b1", project.FullPath)); 84table1.Add(new ProjectItemInstance(project, "i1", "a1", project.FullPath)); 108lookup.AddNewItem(new ProjectItemInstance(project, "i1", "a2", project.FullPath)); 154table1.Add(new ProjectItemInstance(project, "i1", "a1", project.FullPath)); 157table1.Add(new ProjectItemInstance(project, "i1", "a1", project.FullPath)); 165new ProjectItemInstance(project, "i1", "a1", project.FullPath), // Should not get added 166new ProjectItemInstance(project, "i1", "a2", project.FullPath), // Should get added 215new ProjectItemInstance(project, "i1", "a1", project.FullPath), // Should get added 255ProjectItemInstance item1 = new ProjectItemInstance(project, "i1", "a1", project.FullPath); 264ProjectItemInstance item2 = new ProjectItemInstance(project, "i1", "a2", project.FullPath); 306ProjectItemInstance item1 = new ProjectItemInstance(project, "i1", "a2", project.FullPath); 366ProjectItemInstance item1 = new ProjectItemInstance(project, "i1", "a2", project.FullPath); 407ProjectItemInstance item1 = new ProjectItemInstance(project, "i1", "a2", project.FullPath); 471ProjectItemInstance item1 = new ProjectItemInstance(project, "i1", "a2", project.FullPath); 531ProjectItemInstance item1 = new ProjectItemInstance(project, "i1", "a2", project.FullPath); 602ProjectItemInstance item1 = new ProjectItemInstance(project, "i1", "a2", project.FullPath); 669ProjectItemInstance item1 = new ProjectItemInstance(project, "i1", "a2", project.FullPath); 724ProjectItemInstance item1 = new ProjectItemInstance(project, "i1", "a2", project.FullPath); 772ProjectItemInstance item1 = new ProjectItemInstance(project, "i1", "a2", project.FullPath); 826ProjectItemInstance item1 = new ProjectItemInstance(project, "i1", "a2", project.FullPath); 867ProjectItemInstance item1 = new ProjectItemInstance(project, "i1", "a2", project.FullPath); 902ProjectItemInstance item1 = new ProjectItemInstance(project, "i1", "a2", project.FullPath); 975ProjectItemInstance item1 = new ProjectItemInstance(project, "i1", "a2", project.FullPath); 1016lookup.AddNewItem(new ProjectItemInstance(project, "x", "y", project.FullPath)); 1030ProjectItemInstance item1 = new ProjectItemInstance(project, "i1", "a2", project.FullPath); 1079ProjectItemInstance item1 = new ProjectItemInstance(project, "i1", "a2", project.FullPath); 1134ProjectItemInstance item1 = new ProjectItemInstance(project, "i1", "a2", project.FullPath); 1169ProjectItemInstance item1 = new ProjectItemInstance(project, "i1", "a2", project.FullPath);
BackEnd\MockTaskBuilder.cs (2)
102lookupForInference.AddNewItem(new ProjectItemInstance(requestEntry.RequestConfiguration.Project, taskInstance.Name + "_Item", "Item", task.Location.File)); 106lookupForExecution.AddNewItem(new ProjectItemInstance(requestEntry.RequestConfiguration.Project, taskInstance.Name + "_Item", "Item", task.Location.File));
BackEnd\TargetUpToDateChecker_Tests.cs (11)
183items.Add(new ProjectItemInstance(project, "Items", "a.cs", project.FullPath)); 184items.Add(new ProjectItemInstance(project, "Items", "b.cs", project.FullPath)); 225items.Add(new ProjectItemInstance(project, "Items", "a.cs", project.FullPath)); 226items.Add(new ProjectItemInstance(project, "Items", "b.cs", project.FullPath)); 227items.Add(new ProjectItemInstance(project, "Items", "c.cs", project.FullPath)); 272items.Add(new ProjectItemInstance(project, "Items", "a.cs", project.FullPath)); 273items.Add(new ProjectItemInstance(project, "Items", "b.cs", project.FullPath)); 274items.Add(new ProjectItemInstance(project, "Items", "c.cs", project.FullPath)); 275items.Add(new ProjectItemInstance(project, "MoreItems", "a.txt", project.FullPath)); 276items.Add(new ProjectItemInstance(project, "MoreItems", "b.txt", project.FullPath)); 277items.Add(new ProjectItemInstance(project, "MoreItems", "c.txt", project.FullPath));
BackEnd\TaskExecutionHost_Tests.cs (3)
1273ProjectItemInstance item = new ProjectItemInstance(project, "ItemListContainingOneItem", "a.cs", "."); 1278item = new ProjectItemInstance(project, "ItemListContainingTwoItems", "b.cs", "."); 1279ProjectItemInstance item2 = new ProjectItemInstance(project, "ItemListContainingTwoItems", "c.cs", ".");
BackEnd\TaskRegistry_Tests.cs (6)
2215ProjectItemInstance iag = new ProjectItemInstance(project, "IntermediateAssembly", @"subdir1\engine.dll", project.FullPath); 2219iag = new ProjectItemInstance(project, "IntermediateAssembly", @"subdir2\tasks.dll", project.FullPath); 2226ProjectItemInstance fig = new ProjectItemInstance(project, "FirstItem" + i, "FirstValue" + i, project.FullPath); 2233ProjectItemInstance sig = new ProjectItemInstance(project, "SecondItem" + i, "SecondValue" + i, project.FullPath); 2238ProjectItemInstance tig = new ProjectItemInstance(project, "ThirdItem", "ThirdValue1", project.FullPath); 2242ProjectItemInstance trig = new ProjectItemInstance(project, "ItemWithTrueItem", "true", project.FullPath);
Evaluation\Expander_Tests.cs (19)
86ig.Add(new ProjectItemInstance(project, "Compile", "foo.cs", project.FullPath)); 87ig.Add(new ProjectItemInstance(project, "Compile", "bar.cs", project.FullPath)); 90ig2.Add(new ProjectItemInstance(project, "Resource", "bing.resx", project.FullPath)); 758ProjectItemInstance pi = new ProjectItemInstance(project, "i", "i" + n.ToString(), project.FullPath); 802ProjectItemInstance i0 = new ProjectItemInstance(project, "i", "i0", project.FullPath); 803ProjectItemInstance i1 = new ProjectItemInstance(project, "i", "i1", project.FullPath); 1369ProjectItemInstance i1 = new ProjectItemInstance(project, "IntermediateAssembly", 1373ProjectItemInstance i2 = new ProjectItemInstance(project, "IntermediateAssembly", 1379ProjectItemInstance i3 = new ProjectItemInstance(project, "Content", "splash.bmp", project.FullPath); 1384ProjectItemInstance i4 = new ProjectItemInstance(project, "Resource", "string$(p).resx", project.FullPath); 1387ProjectItemInstance i5 = new ProjectItemInstance(project, "Resource", "dialogs%253b.resx", project.FullPath); 1392ProjectItemInstance i6 = new ProjectItemInstance(project, "Content", "about.bmp", project.FullPath); 1583var item = new ProjectItemInstance(project, "ManyItems", $"ThisIsAFairlyLongFileName_{i}.bmp", project.FullPath); 1591new ProjectItemInstance (project, "ManySpacesItem", "Foo", project.FullPath), 1592new ProjectItemInstance (project, "ManySpacesItem", manySpaces, project.FullPath), 1593new ProjectItemInstance (project, "ManySpacesItem", "Bar", project.FullPath), 1597new ProjectItemInstance (project, "Exactly1024", "".PadLeft(1024), project.FullPath), 1598new ProjectItemInstance (project, "Exactly1024", "Foo", project.FullPath), 3917ig.Add(new ProjectItemInstance(project, "Compile", "fOo.Cs", project.FullPath));
Evaluation\ItemSpec_Tests.cs (1)
109itemDictionary.Add(new ProjectItemInstance(dummyProject, itemType.Key, item, dummyProject.FullPath));
ExpressionTree_Tests.cs (17)
185itemBag.Add(new ProjectItemInstance(parentProject, "Compile", "foo.cs", parentProject.FullPath)); 186itemBag.Add(new ProjectItemInstance(parentProject, "Compile", "bar.cs", parentProject.FullPath)); 187itemBag.Add(new ProjectItemInstance(parentProject, "Compile", "baz.cs", parentProject.FullPath)); 188itemBag.Add(new ProjectItemInstance(parentProject, "Boolean", "true", parentProject.FullPath)); 215itemBag.Add(new ProjectItemInstance(parentProject, "Compile", "foo.cs", parentProject.FullPath)); 216itemBag.Add(new ProjectItemInstance(parentProject, "Compile", "bar.cs", parentProject.FullPath)); 217itemBag.Add(new ProjectItemInstance(parentProject, "Compile", "baz.cs", parentProject.FullPath)); 250itemBag.Add(new ProjectItemInstance(parentProject, "Compile", "foo.cs", parentProject.FullPath)); 251itemBag.Add(new ProjectItemInstance(parentProject, "Compile", "bar.cs", parentProject.FullPath)); 252itemBag.Add(new ProjectItemInstance(parentProject, "Compile", "baz.cs", parentProject.FullPath)); 282itemBag.Add(new ProjectItemInstance(parentProject, "Compile", "a", parentProject.FullPath)); 299itemBag.Add(new ProjectItemInstance(parentProject, "Compile", "foo.cs", parentProject.FullPath)); 300itemBag.Add(new ProjectItemInstance(parentProject, "Compile", "bar.cs", parentProject.FullPath)); 301itemBag.Add(new ProjectItemInstance(parentProject, "Compile", "baz.cs", parentProject.FullPath)); 328itemBag.Add(new ProjectItemInstance(parentProject, "Compile", "foo.cs", parentProject.FullPath)); 329itemBag.Add(new ProjectItemInstance(parentProject, "Compile", "bar.cs", parentProject.FullPath)); 330itemBag.Add(new ProjectItemInstance(parentProject, "Compile", "baz.cs", parentProject.FullPath));
ExpressionTreeExpression_Tests.cs (7)
376itemBag.Add(new ProjectItemInstance(parentProject, "u", "a'b;c", parentProject.FullPath)); 377itemBag.Add(new ProjectItemInstance(parentProject, "v", "a", parentProject.FullPath)); 378itemBag.Add(new ProjectItemInstance(parentProject, "w", "1", parentProject.FullPath)); 379itemBag.Add(new ProjectItemInstance(parentProject, "x", "true", parentProject.FullPath)); 380itemBag.Add(new ProjectItemInstance(parentProject, "y", "xxx", parentProject.FullPath)); 381itemBag.Add(new ProjectItemInstance(parentProject, "z", "xxx", parentProject.FullPath)); 382itemBag.Add(new ProjectItemInstance(parentProject, "z", "yyy", parentProject.FullPath));
Graph\ProjectGraph_Tests.cs (4)
137var referenceItem1 = new ProjectItemInstance(projectInstance, "Ref1", "path1", "file1"); 140var referenceItem2 = new ProjectItemInstance(projectInstance, "Ref2", "path2", "file2"); 184var referenceItem1 = new ProjectItemInstance(projectInstance, "Ref1", "path1", "file1"); 185var referenceItem2 = new ProjectItemInstance(projectInstance, "Ref2", "path1", "file1");