3 instantiations of ProjectItemElement
Microsoft.Build (3)
Construction\ProjectItemElement.cs (1)
429
ProjectItemElement item = new
ProjectItemElement
(element, containingProject);
Evaluation\ProjectParser.cs (1)
312
ProjectItemElement item = new
ProjectItemElement
(element, parent, _project);
ObjectModelRemoting\LinkedObjectFactory.cs (1)
165
return new
ProjectItemElement
(link);
269 references to ProjectItemElement
Microsoft.Build (127)
BuildCheck\OM\ParsedItemsCheckData.cs (6)
15
/// Extension methods for <see cref="
ProjectItemElement
"/>.
19
public static IEnumerable<
ProjectItemElement
> GetItemsOfType(this IEnumerable<
ProjectItemElement
> items,
32
public class ItemsHolder(IEnumerable<
ProjectItemElement
> items, IEnumerable<ProjectItemGroupElement> itemGroups)
34
public IEnumerable<
ProjectItemElement
> Items { get; } = items;
37
public IEnumerable<
ProjectItemElement
> GetItemsOfType(string itemType)
Construction\ProjectItemElement.cs (5)
355
internal
ProjectItemElement
NextItem
359
ProjectItemElement
result = null;
364
result = NextSibling as
ProjectItemElement
;
422
internal static
ProjectItemElement
CreateDisconnected(string itemType, ProjectRootElement containingProject)
429
ProjectItemElement
item = new ProjectItemElement(element, containingProject);
Construction\ProjectItemGroupElement.cs (6)
57
public ICollection<
ProjectItemElement
> Items => GetChildrenOfType<
ProjectItemElement
>();
90
public
ProjectItemElement
AddItem(string itemType, string include)
100
public
ProjectItemElement
AddItem(string itemType, string include, IEnumerable<KeyValuePair<string, string>> metadata)
109
foreach (
ProjectItemElement
item in Items)
135
ProjectItemElement
newItem = ContainingProject.CreateItemElement(itemType, include);
Construction\ProjectMetadataElement.cs (1)
168
ErrorUtilities.VerifyThrowInvalidOperation(parent is
ProjectItemElement
|| parent is ProjectItemDefinitionElement, "OM_CannotAcceptParent");
Construction\ProjectRootElement.cs (11)
312
public ICollection<
ProjectItemElement
> Items => new ReadOnlyCollection<
ProjectItemElement
>(GetAllChildrenOfType<
ProjectItemElement
>());
970
public
ProjectItemElement
AddItem(string itemType, string include)
985
public
ProjectItemElement
AddItem(string itemType, string include, IEnumerable<KeyValuePair<string, string>> metadata)
1020
ProjectItemElement
newItem = itemGroupToAddTo.AddItem(itemType, include, metadata);
1257
public
ProjectItemElement
CreateItemElement(string itemType)
1259
return Link != null ? RootLink.CreateItemElement(itemType) :
ProjectItemElement
.CreateDisconnected(itemType, this);
1266
public
ProjectItemElement
CreateItemElement(string itemType, string include)
1273
ProjectItemElement
item =
ProjectItemElement
.CreateDisconnected(itemType, this);
Definition\Project.cs (40)
1670
internal bool SplitItemElementIfNecessary(
ProjectItemElement
itemElement)
1699
internal bool ItemElementRequiresSplitting(
ProjectItemElement
itemElement)
1715
internal bool IsSuitableExistingItemXml(
ProjectItemElement
candidateExistingItemXml, string unevaluatedInclude, IEnumerable<KeyValuePair<string, string>> metadata)
1763
internal string ExpandItemIncludeBestEffortLeaveEscaped(
ProjectItemElement
renamedItemElement)
2563
private List<GlobResult> GetAllGlobs(List<
ProjectItemElement
> projectItemElements)
2595
var
itemElement = projectItemElements[i];
2617
private GlobResult BuildGlobResultFromIncludeItem(
ProjectItemElement
itemElement, IReadOnlyDictionary<string, CumulativeRemoveElementData> removeElementCache)
2666
private void CacheInformationFromRemoveItem(
ProjectItemElement
itemElement, Dictionary<string, CumulativeRemoveElementData> removeElementCache)
2726
IEnumerable<
ProjectItemElement
> itemElementsAbove = GetItemElementsThatMightAffectItem(GetEvaluatedItemElements(evaluationContext), item);
2739
private List<
ProjectItemElement
> GetEvaluatedItemElements(EvaluationContext evaluationContext)
2750
private static IEnumerable<
ProjectItemElement
> GetItemElementsThatMightAffectItem(List<
ProjectItemElement
> evaluatedItemElements, ProjectItem item)
2752
IEnumerable<
ProjectItemElement
> relevantElementsAfterInclude = evaluatedItemElements
2769
private static List<
ProjectItemElement
> GetItemElementsByType(IEnumerable<
ProjectItemElement
> itemElements, string itemType)
2774
private List<ProvenanceResult> GetItemProvenance(string itemToMatch, IEnumerable<
ProjectItemElement
> projectItemElements)
2792
private ProvenanceResult ComputeProvenanceResult(string itemToMatch,
ProjectItemElement
itemElement)
3011
ProjectElement element = GetAnySuitableExistingItemXml(itemType, unevaluatedInclude, metadata, out
ProjectItemElement
itemElement);
3017
if (element is
ProjectItemElement
itemElementToAddBefore)
3080
ProjectItemElement
itemElement;
3391
internal bool SplitItemElementIfNecessary(
ProjectItemElement
itemElement)
3420
internal bool ItemElementRequiresSplitting(
ProjectItemElement
itemElement)
3436
public bool IsSuitableExistingItemXml(
ProjectItemElement
candidateExistingItemXml, string unevaluatedInclude, IEnumerable<KeyValuePair<string, string>> metadata)
3519
public string ExpandItemIncludeBestEffortLeaveEscaped(
ProjectItemElement
renamedItemElement)
3591
private List<ProjectItem> AddItemHelper(
ProjectItemElement
itemElement, string unevaluatedInclude, IEnumerable<KeyValuePair<string, string>> metadata)
3838
private ProjectElement GetAnySuitableExistingItemXml(string itemType, string unevaluatedInclude, IEnumerable<KeyValuePair<string, string>> metadata, out
ProjectItemElement
suitableExistingItemXml)
3858
ProjectItemElement
itemToAddBefore = null;
3877
foreach (
ProjectItemElement
existingItemXml in itemGroupXml.Items)
3964
bool IsSuitableExistingItemXml(
ProjectItemElement
candidateExistingItemXml, string unevaluatedInclude, IEnumerable<KeyValuePair<string, string>> metadata);
3972
string ExpandItemIncludeBestEffortLeaveEscaped(
ProjectItemElement
renamedItemElement);
3989
public bool IsSuitableExistingItemXml(
ProjectItemElement
candidateExistingItemXml, string unevaluatedInclude, IEnumerable<KeyValuePair<string, string>> metadata) { throw new NotImplementedException(); }
3997
public string ExpandItemIncludeBestEffortLeaveEscaped(
ProjectItemElement
renamedItemElement) { throw new NotImplementedException(); }
4122
public List<
ProjectItemElement
> EvaluatedItemElements { get; private set; }
4280
EvaluatedItemElements = new List<
ProjectItemElement
>();
4643
/// Gets the original <see cref="
ProjectItemElement
"/> that contained the globs.
4645
public
ProjectItemElement
ItemElement { get; }
4670
public GlobResult(
ProjectItemElement
itemElement, IEnumerable<string> includeGlobStrings, IMSBuildGlob globWithGaps, IEnumerable<string> excludeFragmentStrings, IEnumerable<string> removeFragmentStrings)
4743
/// Gets the <see cref="
ProjectItemElement
"/> that contains the operation.
4745
public
ProjectItemElement
ItemElement { get; }
4760
public ProvenanceResult(
ProjectItemElement
itemElement, Operation operation, Provenance provenance, int occurrences)
Definition\ProjectItem.cs (10)
80
private
ProjectItemElement
_xml;
110
internal ProjectItem(
ProjectItemElement
xml, Project project)
124
ProjectItemElement
xml,
155
public
ProjectItemElement
Xml
572
/// If true, adds direct metadata to the <see cref="
ProjectItemElement
"/> from which this <see cref="ProjectItem"/> originated. The intent is to affect all other sibling items.
816
/// Called ONLY by <see cref="Microsoft.Build.Evaluation.Project.SplitItemElementIfNecessary(
ProjectItemElement
)"/>
823
ProjectItemElement
oldXml = _xml;
916
private
ProjectItemElement
_xml;
933
internal ProjectItemFactory(Project project,
ProjectItemElement
xml)
952
public
ProjectItemElement
ItemElement
Evaluation\Evaluator.cs (5)
363
internal static List<I> CreateItemsFromInclude(string rootDirectory,
ProjectItemElement
itemElement, IItemFactory<I, I> itemFactory, string unevaluatedIncludeEscaped, Expander<P, I> expander, ILoggingService loggingService, string buildEventFileInfoFullPath, BuildEventContext buildEventContext)
500
foreach (
ProjectItemElement
itemElement in itemGroupElement.Items)
1015
foreach (
ProjectItemElement
itemElement in itemGroupElement.Items)
1310
private void EvaluateItemElement(bool itemGroupConditionResult,
ProjectItemElement
itemElement, LazyItemEvaluator<P, I, M, D> lazyEvaluator)
2460
private void RecordEvaluatedItemElement(
ProjectItemElement
itemElement)
Evaluation\IEvaluatorData.cs (1)
203
List<
ProjectItemElement
> EvaluatedItemElements
Evaluation\IItemFactory.cs (1)
36
ProjectItemElement
ItemElement
Evaluation\LazyItemEvaluator.cs (11)
121
public ItemData(I item,
ProjectItemElement
originatingItemElement, int elementOrder, bool conditionResult, string normalizedItemValue = null)
130
public readonly ItemData Clone(IItemFactory<I, I> itemFactory,
ProjectItemElement
initialItemElementForFactory)
142
public
ProjectItemElement
OriginatingItemElement { get; }
464
public
ProjectItemElement
ItemElement { get; set; }
474
public OperationBuilder(
ProjectItemElement
itemElement, bool conditionResult)
486
public OperationBuilderWithMetadata(
ProjectItemElement
itemElement, bool conditionResult) : base(itemElement, conditionResult)
506
public void ProcessItemElement(string rootDirectory,
ProjectItemElement
itemElement, bool conditionResult)
532
private UpdateOperation BuildUpdateOperation(string rootDirectory,
ProjectItemElement
itemElement, bool conditionResult)
544
private IncludeOperation BuildIncludeOperation(string rootDirectory,
ProjectItemElement
itemElement, bool conditionResult)
581
private RemoveOperation BuildRemoveOperation(string rootDirectory,
ProjectItemElement
itemElement, bool conditionResult)
651
private void ProcessMetadataElements(
ProjectItemElement
itemElement, OperationBuilderWithMetadata operationBuilder)
Evaluation\LazyItemEvaluator.EvaluatorData.cs (1)
41
public List<
ProjectItemElement
> EvaluatedItemElements
Evaluation\LazyItemEvaluator.IncludeOperation.cs (1)
179
public IncludeOperationBuilder(
ProjectItemElement
itemElement, bool conditionResult) : base(itemElement, conditionResult)
Evaluation\LazyItemEvaluator.ItemFactoryWrapper.cs (3)
17
private
ProjectItemElement
_itemElement;
20
public ItemFactoryWrapper(
ProjectItemElement
itemElement, IItemFactory<I, I> wrappedItemFactory)
31
public
ProjectItemElement
ItemElement
Evaluation\LazyItemEvaluator.LazyItemOperation.cs (1)
25
protected readonly
ProjectItemElement
_itemElement;
Evaluation\LazyItemEvaluator.RemoveOperation.cs (1)
118
public RemoveOperationBuilder(
ProjectItemElement
itemElement, bool conditionResult) : base(itemElement, conditionResult)
Evaluation\ProjectParser.cs (5)
248
ProjectItemElement
item = ParseProjectItemElement(childElement, itemGroup);
259
private
ProjectItemElement
ParseProjectItemElement(XmlElementWithLocation element, ProjectItemGroupElement parent)
312
ProjectItemElement
item = new ProjectItemElement(element, parent, _project);
399
ProjectErrorUtilities.VerifyThrowInvalidProject(!(parent is
ProjectItemElement
) || ((
ProjectItemElement
)parent).Remove.Length == 0, element.Location, "ChildElementsBelowRemoveNotAllowed", element.Name);
Evaluation\PropertyTrackingEvaluatorDataWrapper.cs (1)
149
public List<
ProjectItemElement
> EvaluatedItemElements => _wrapped.EvaluatedItemElements;
Instance\ProjectInstance.cs (6)
405
this.EvaluatedItemElements = new List<
ProjectItemElement
>(project.Items.Count);
481
EvaluatedItemElements = new List<
ProjectItemElement
>(linkedProject.Items.Count);
558
this.EvaluatedItemElements = new List<
ProjectItemElement
>();
675
this.EvaluatedItemElements = new List<
ProjectItemElement
>(data.EvaluatedItemElements);
1148
public List<
ProjectItemElement
> EvaluatedItemElements
3104
this.EvaluatedItemElements = new List<
ProjectItemElement
>();
Instance\ProjectItemInstance.cs (4)
677
internal
ProjectItemElement
ToProjectItemElement(ProjectElementContainer parent)
679
ProjectItemElement
item = parent.ContainingProject.CreateItemElement(ItemType);
2005
public
ProjectItemElement
ItemElement
2137
public
ProjectItemElement
ItemElement
ObjectModelRemoting\ConstructionObjectLinks\ProjectItemElementLink.cs (1)
12
/// Allow for creating a local representation to external object of type <see cref="
ProjectItemElement
"/>
ObjectModelRemoting\ConstructionObjectLinks\ProjectRootElementLink.cs (2)
83
public abstract
ProjectItemElement
CreateItemElement(string itemType);
88
public abstract
ProjectItemElement
CreateItemElement(string itemType, string include);
ObjectModelRemoting\DefinitionObjectsLinks\ProjectItemLink.cs (1)
26
public abstract
ProjectItemElement
Xml { get; }
ObjectModelRemoting\LinkedObjectFactory.cs (3)
80
public ProjectItem Create(ProjectItemLink link, Project project = null,
ProjectItemElement
xml = null)
163
public
ProjectItemElement
Create(ProjectItemElementLink link)
245
internal LinkedProjectItem(
ProjectItemElement
xml, Project project, ProjectItemLink link)
Microsoft.Build.BuildCheck.UnitTests (13)
ParsedItemsAnalysisDataTests.cs (13)
20
ProjectItemElement
el1 =
ProjectItemElement
.CreateDisconnected("ItemB", root);
21
ProjectItemElement
el2 =
ProjectItemElement
.CreateDisconnected("ItemB", root);
22
ProjectItemElement
el3 =
ProjectItemElement
.CreateDisconnected("ItemA", root);
23
ProjectItemElement
el4 =
ProjectItemElement
.CreateDisconnected("ItemB", root);
24
ProjectItemElement
el5 =
ProjectItemElement
.CreateDisconnected("ItemA", root);
26
var items = new List<
ProjectItemElement
>()
39
itemsA.ShouldBeSameIgnoringOrder(new List<
ProjectItemElement
>() { el3, el5 });
40
itemsB.ShouldBeSameIgnoringOrder(new List<
ProjectItemElement
>() { el1, el2, el4 });
Microsoft.Build.Engine.OM.UnitTests (129)
Construction\ConstructionEditing_Tests.cs (46)
648
ProjectItemElement
item = project.CreateItemElement("i");
664
ProjectItemElement
item = project.CreateItemElement("i");
679
ProjectItemElement
item = project.CreateItemElement("i");
706
ProjectItemElement
item = project.CreateItemElement("i");
733
ProjectItemElement
itemRemoveFirst = project.CreateItemElement("i");
734
ProjectItemElement
itemInclude = project.CreateItemElement("i");
735
ProjectItemElement
itemRemoveSecond = project.CreateItemElement("i");
736
ProjectItemElement
itemUpdate = project.CreateItemElement("i");
737
ProjectItemElement
itemRemoveThird = project.CreateItemElement("i");
766
public delegate void AddMetadata(
ProjectItemElement
element);
876
Action<
ProjectItemElement
, ProjectMetadataElement, ProjectMetadataElement> act = (i, c, r) => { i.InsertAfterChild(c, r); };
918
Action<
ProjectItemElement
, ProjectMetadataElement, ProjectMetadataElement> act = (i, c, r) => { i.InsertBeforeChild(c, r); };
999
Action<
ProjectItemElement
, ProjectMetadataElement, ProjectMetadataElement> act = (i, c, r) =>
1063
Action<
ProjectItemElement
, ProjectMetadataElement, ProjectMetadataElement> act = (i, c, r) =>
1072
private static void AssertMetadataConstruction(AddMetadata addMetadata, int position, string expectedItem, Action<
ProjectItemElement
, ProjectMetadataElement, ProjectMetadataElement> actOnTestData)
1076
var
item = itemGroup.AddItem("i", "a");
1119
foreach (
var
updateElement in itemUpdateElements)
1139
var
firstIncludeItem = project.CreateItemElement("i");
1140
var
secondIncludeItem = project.CreateItemElement("i");
1141
var
firstUpdateItem = project.CreateItemElement("i");
1142
var
secondUpdateItem = project.CreateItemElement("i");
1225
ProjectItemElement
item = project.CreateItemElement("i");
1776
ProjectItemElement
item = project.AddItem("i", "i1");
2374
ProjectItemElement
item1 = group1.AddItem("i", "i1");
2375
ProjectItemElement
item2 = group1.AddItem("i", "i2");
2397
ProjectItemElement
item1 = group1.AddItem("i", "i1");
2398
ProjectItemElement
item2 = group1.AddItem("i", "i2");
2420
ProjectItemElement
item1 = group1.AddItem("i", "i1");
2421
ProjectItemElement
item2 = group1.AddItem("i", "i2");
2443
ProjectItemElement
item1 = group1.AddItem("i", "i1");
2444
ProjectItemElement
item2 = group1.AddItem("i", "i2");
2466
ProjectItemElement
item1 = group1.AddItem("i", "i1");
2467
ProjectItemElement
item2 = group1.AddItem("i", "i2");
2489
ProjectItemElement
item1 = group1.AddItem("i", "i1");
2490
ProjectItemElement
item2 = group1.AddItem("i", "i2");
2491
ProjectItemElement
item3 = group1.AddItem("i", "i3");
2569
var
element = ProjectRootElement.Create().AddItem("i", "i1");
2580
var
element = ProjectRootElement.Create().AddItem("i", "i1");
2819
var
element = ProjectRootElement.Create().AddTarget("t").AddItemGroup().AddItem("i", "i1");
2830
var
element = ProjectRootElement.Create().AddTarget("t").AddItemGroup().AddItem("i", "i1");
2916
var
element = ProjectRootElement.Create().AddItem("i", "i1");
2927
var
element = ProjectRootElement.Create().AddItem("i", "i1");
3078
var
element = ProjectRootElement.Create().AddTarget("t").AddItemGroup().AddItem("i", "i1");
3089
var
element = ProjectRootElement.Create().AddTarget("t").AddItemGroup().AddItem("i", "i1");
3112
var
item = itemGroup.AddItem("i1", "i");
3146
var
item = itemGroup.AddItem("i1", "i");
Construction\ProjectItemElement_Tests.cs (29)
80
ProjectItemElement
item = GetItemFromContent(project);
98
ProjectItemElement
item = GetItemFromContent(project);
413
ProjectItemElement
item = Helpers.GetFirst(itemGroup.Items);
597
var
item = GetItemFromContent(project);
610
var
item = GetItemFromContent(project);
637
var
item = GetItemFromContent(project);
651
ProjectItemElement
item = GetItemFromContent(project);
666
ProjectItemElement
item = GetItemFromContent(project);
681
ProjectItemElement
item = GetItemFromContent(project);
696
ProjectItemElement
item = GetItemFromContent(project);
711
ProjectItemElement
item = GetItemFromContent(project);
726
ProjectItemElement
item = GetItemFromContent(project);
743
ProjectItemElement
item = GetItemFromContent(project);
759
ProjectItemElement
item = GetItemFromContent(project);
773
ProjectItemElement
item = GetItemFromContent(project);
788
ProjectItemElement
item = GetItemFromContent(project);
803
ProjectItemElement
item = GetItemFromContent(project);
820
ProjectItemElement
item = GetItemFromContent(project);
836
ProjectItemElement
item = GetItemFromContent(project);
852
ProjectItemElement
item = GetItemFromContent(project);
867
ProjectItemElement
item = GetItemFromContent(project);
882
ProjectItemElement
item = GetItemFromContent(project);
897
ProjectItemElement
item = GetItemFromContent(project);
914
ProjectItemElement
item = GetItemFromContent(project);
930
ProjectItemElement
item = GetItemFromContent(project);
944
ProjectItemElement
item = GetItemFromContent(project);
1007
ProjectItemElement
item = project.AddTarget("t").AddItemGroup().AddItem("i", "i1");
1027
ProjectItemElement
item = project.AddItemGroup().AddItem("i", "i1");
1039
private static
ProjectItemElement
GetItemFromContent(string content)
Construction\ProjectMetadataElement_Tests.cs (2)
307
var
item = items.First();
1272
ProjectItemElement
item = Helpers.GetFirst(itemGroup.Items);
Construction\ProjectRootElement_Tests.cs (2)
888
List<
ProjectItemElement
> items = Helpers.MakeList(project.Items);
1168
var
item = ig.AddItem("Foo", "boo$(hoo)");
Construction\WhiteSpacePreservation_Tests.cs (1)
406
var
newItemElement = itemGroup.ContainingProject.CreateItemElement("i2", "b");
Definition\DefinitionEditing_Tests.cs (25)
420
ProjectItemElement
itemElement = project.Xml.AddItem("i", "*.xxx");
446
ProjectItemElement
itemElement = project.Xml.AddItem("i", "*.xxx");
471
ProjectItemElement
item1 = project.Xml.AddItem("i", "*.xxx");
474
ProjectItemElement
item2 = project.AddItem("i", "i1.xxx")[0].Xml;
522
ProjectItemElement
item1 = project.Xml.AddItem(
527
ProjectItemElement
item2 =
558
ProjectItemElement
item1 = project.Xml.AddItem("i", @"c:\subdir1\**\subdir2\**\*.x?x");
561
ProjectItemElement
item2 = project.AddItem("i", @"c:\subdir1\a\b\c\i1.xyx")[0].Xml;
586
ProjectItemElement
item1 = project.Xml.AddItem("i", "*.xxx");
673
ProjectItemElement
itemElement = project.Xml.AddItem("i", wildcard);
794
ProjectItemElement
itemElement = project.Xml.AddItem("i", wildcard);
898
ProjectItemElement
newItemElement = Helpers.GetFirst((Helpers.GetFirst(project.Xml.ItemGroups)).Items);
926
ProjectItemElement
newItemElement = Helpers.GetLast((Helpers.GetLast(project.Xml.ItemGroups)).Items);
952
ProjectItemElement
newItemElement = Helpers.GetLast((Helpers.GetLast(project.Xml.ItemGroups)).Items);
1236
ProjectItemElement
itemElement = Helpers.GetFirst(Helpers.GetFirst(project.Xml.ItemGroups).Items);
1394
ProjectItemElement
itemElement = project.Xml.AddItem("i", wildcard);
2341
ProjectItemElement
itemElement = project.Xml.AddItem("i", "*.xxx");
2367
ProjectItemElement
itemElement = project.Xml.AddItem("i", "*.xxx");
2392
ProjectItemElement
item1 = project.Xml.AddItem("i", "*.xxx");
2395
ProjectItemElement
item2 = project.AddItemFast("i", "i1.xxx")[0].Xml;
2443
ProjectItemElement
item1 = project.Xml.AddItem("i",
2447
ProjectItemElement
item2 = project.AddItemFast("i",
2475
ProjectItemElement
item1 = project.Xml.AddItem("i", @"c:\subdir1\**\subdir2\**\*.x?x");
2478
ProjectItemElement
item2 = project.AddItemFast("i", @"c:\subdir1\a\b\c\i1.xyx")[0].Xml;
2503
ProjectItemElement
item1 = project.Xml.AddItem("i", "*.xxx");
Definition\ProjectItem_Tests.cs (2)
2228
Assert.Equal(2, project.Xml.AllChildren.OfType<
ProjectItemElement
>().Count());
2288
Assert.Equal(2, project.Xml.AllChildren.OfType<
ProjectItemElement
>().Count());
Definition\ProjectMetadata_Tests.cs (1)
462
ProjectItemElement
itemXml = import.AddItem("i", "i1");
ObjectModelRemoting\Helpers\ViewValidation.construction.cs (2)
884
public static void Verify(
ProjectItemElement
viewXml,
ProjectItemElement
realXml, ValidationContext context = null)
ObjectModelRemoting\Helpers\ViewValidation.cs (1)
219
if (VerifyCheckType<
ProjectItemElement
>(view, real, context, Verify))
ObjectModelRemoting\LinkedConstructionModify_Tests.cs (9)
83
xmlPair.Add2NewChildrenWithVerify<
ProjectItemElement
>(newItem, (p, i) => p.AddItem("cpp", i), (pi, i) => pi.Include == i, out var item1, out var item2);
84
xmlPair.Add2NewChildrenWithVerify<
ProjectItemElement
>(newItemWithMetadata, (p, i) => p.AddItem("cpp", i, itemMetadata), (pi, i) => pi.Include == i, out var itemWithMetadata1, out var itemWithMetadata2);
108
xmlPair.CreateWithVerify<
ProjectItemElement
>((p) => p.CreateItemElement("itemType"));
109
xmlPair.CreateWithVerify<
ProjectItemElement
>((p) => p.CreateItemElement("itemType", "include"));
351
var item1 = xmlPair.AddNewChaildWithVerify<
ProjectItemElement
>(ObjectType.View, "newItem", (p, i) => p.AddItem("cpp", i), (pi, i) => pi.Include == i);
644
var itemInTargt = itemGrp.AddNewChaildWithVerify<
ProjectItemElement
>(ObjectType.View, "targetfile.cs", (p, s) => p.AddItem("cs", s), (pe, s) => pe.Include == s);
646
var item = xmlPair.AddNewChaildWithVerify<
ProjectItemElement
>(ObjectType.View, "file.cpp", (p, s) => p.AddItem("cpp", s), (pe, s) => pe.Include == s);
697
itemGrp.Add2NewChildrenWithVerify<
ProjectItemElement
>("file.cpp", (ig, inc) => ig.AddItem("cpp", inc), (i, inc) => i.Include == inc, out var item1, out var item2);
705
itemGrp.Add2NewChildrenWithVerify<
ProjectItemElement
>("file.cs", (ig, inc) => ig.AddItem("cs", inc, itemMetadata), (i, inc) => i.Include == inc, out var itemWithMetadata1, out var itemWithMetadata2);
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectItemElementLink.cs (2)
14
public
ProjectItemElement
ItemXml => (
ProjectItemElement
)Source;
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectRootElementLink.cs (4)
217
public override
ProjectItemElement
CreateItemElement(string itemType)
219
return (
ProjectItemElement
)this.Proxy.CreateItemElement(itemType).Import(this.Linker);
222
public override
ProjectItemElement
CreateItemElement(string itemType, string include)
224
return (
ProjectItemElement
)this.Proxy.CreateItemElement(itemType, include).Import(this.Linker);
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\ProjectElemetExportHelper.cs (1)
57
ElementInfo.New<
ProjectItemElement
, MockProjectItemElementLinkRemoter>(),
ObjectModelRemoting\RemoteProjectsProviderMock\EvaluationLinkMocks\MockProjectItemLink.cs (2)
54
public override
ProjectItemElement
Xml => (
ProjectItemElement
)this.Proxy.Xml.Import(this.Linker);