139 references to AppendChild
Microsoft.Build (46)
Construction\ProjectElementContainer.cs (6)
127
/// Cannot be set directly; use <see cref="
AppendChild
">AppendChild()</see>.
189
/// Reference child may be null, in which case this is equivalent to <see cref="
AppendChild
">AppendChild(child)</see>.
210
AppendChild
(child);
373
AppendChild
(child.Clone(ContainingProject));
417
parent?.
AppendChild
(clone);
427
clone.
AppendChild
(child.Clone(clone.ContainingProject));
Construction\ProjectImportGroupElement.cs (1)
67
AppendChild
(newImport);
Construction\ProjectItemDefinitionElement.cs (1)
87
AppendChild
(metadata);
Construction\ProjectItemDefinitionGroupElement.cs (1)
58
AppendChild
(itemDefinition);
Construction\ProjectItemElement.cs (1)
404
AppendChild
(metadata);
Construction\ProjectPropertyGroupElement.cs (1)
66
AppendChild
(newProperty);
Construction\ProjectRootElement.cs (6)
974
AppendChild
(import);
987
AppendChild
(importGroup);
1078
AppendChild
(newItemGroup);
1127
itemDefinitionGroupToAddTo.
AppendChild
(newItemDefinition);
1247
AppendChild
(target);
1260
AppendChild
(usingTask);
Construction\ProjectTargetElement.cs (3)
357
AppendChild
(itemGroup);
370
AppendChild
(propertyGroup);
385
AppendChild
(task);
Construction\ProjectTaskElement.cs (2)
251
AppendChild
(outputItem);
281
AppendChild
(outputProperty);
Construction\ProjectUsingTaskElement.cs (1)
222
AppendChild
(newTaskBody);
Construction\Solution\SolutionProjectGenerator.cs (16)
239
msbuildProject.
AppendChild
(solutionConfigurationProperties);
958
traversalProject.
AppendChild
(importAfter);
959
traversalProject.
AppendChild
(directorySolutionTargetsPropertyGroup);
960
traversalProject.
AppendChild
(directorySolutionTargetsImport);
961
traversalProject.
AppendChild
(importAfterLocal);
963
directorySolutionTargetsPropertyGroup.
AppendChild
(directorySolutionTargetsFileProperty);
964
directorySolutionTargetsPropertyGroup.
AppendChild
(directorySolutionTargetsBasePathProperty);
965
directorySolutionTargetsPropertyGroup.
AppendChild
(directorySolutionTargetsPathProperty);
967
directorySolutionPropsPropertyGroup.
AppendChild
(directorySolutionPropsFileProperty);
968
directorySolutionPropsPropertyGroup.
AppendChild
(directorySolutionPropsBasePathProperty);
969
directorySolutionPropsPropertyGroup.
AppendChild
(directorySolutionPropsPathProperty);
2239
traversalProject.
AppendChild
(configurationDefaultingPropertyGroup);
2245
traversalProject.
AppendChild
(platformDefaultingPropertyGroup);
2273
traversalProject.
AppendChild
(venusConfiguration);
2285
traversalProject.
AppendChild
(globalProperties);
2302
traversalProject.
AppendChild
(frameworkVersionProperties);
Construction\UsingTaskParameterGroupElement.cs (1)
83
AppendChild
(newParameter);
Definition\Project.cs (1)
3093
groupToAppendTo.
AppendChild
(itemElement);
Instance\ProjectItemDefinitionInstance.cs (1)
212
parent.
AppendChild
(element);
Instance\ProjectItemInstance.cs (1)
681
parent.
AppendChild
(item);
Instance\ProjectPropertyInstance.cs (1)
310
parent.
AppendChild
(property);
Instance\ProjectTargetInstance.cs (1)
471
rootElement.
AppendChild
(target);
ObjectModelRemoting\ConstructionObjectLinks\ProjectElementContainerLink.cs (1)
42
/// Helps implementation of the <see cref="ProjectElementContainer.
AppendChild
"/>.
Microsoft.Build.Engine.OM.UnitTests (93)
Construction\ConstructionEditing_Tests.cs (73)
59
project.
AppendChild
(target);
80
project.
AppendChild
(target1);
81
project.
AppendChild
(target2);
109
project2.
AppendChild
(target);
168
choose.
AppendChild
(choose);
182
project.
AppendChild
(choose);
183
choose.
AppendChild
(when);
184
when.
AppendChild
(choose);
198
project.
AppendChild
(choose);
199
choose.
AppendChild
(when);
215
project.
AppendChild
(choose1);
216
choose1.
AppendChild
(when);
233
project.
AppendChild
(choose1);
234
choose1.
AppendChild
(when);
250
project.
AppendChild
(target);
309
target.
AppendChild
(task);
368
project.
AppendChild
(target);
392
project.
AppendChild
(target);
588
project.
AppendChild
(target);
589
target.
AppendChild
(task);
634
target.
AppendChild
(project);
649
project.
AppendChild
(target);
650
target.
AppendChild
(item);
665
project.
AppendChild
(itemGroup);
666
itemGroup.
AppendChild
(item);
680
project.
AppendChild
(target);
681
target.
AppendChild
(itemGroup);
682
itemGroup.
AppendChild
(item);
708
project.
AppendChild
(target);
709
target.
AppendChild
(itemGroup);
710
itemGroup.
AppendChild
(item);
744
project.
AppendChild
(itemGroup);
745
itemGroup.
AppendChild
(itemRemoveFirst);
1152
project.
AppendChild
(itemGroup);
1153
itemGroup.
AppendChild
(firstIncludeItem);
1154
itemGroup.
AppendChild
(secondIncludeItem);
1158
firstUpdateItem.
AppendChild
(firstMetadata);
1161
itemGroup.
AppendChild
(secondUpdateItem);
1162
secondUpdateItem.
AppendChild
(secondMetadata);
1225
itemGroup1.
AppendChild
(item);
1243
project.
AppendChild
(choose);
1244
choose.
AppendChild
(when);
1258
project.
AppendChild
(choose);
1259
choose.
AppendChild
(project.CreateWhenElement("c"));
1260
choose.
AppendChild
(project.CreateOtherwiseElement());
1261
choose.
AppendChild
(project.CreateOtherwiseElement());
1274
project.
AppendChild
(choose);
1275
choose.
AppendChild
(project.CreateWhenElement("c"));
1276
choose.
AppendChild
(project.CreateOtherwiseElement());
1293
project.
AppendChild
(choose);
1294
choose.
AppendChild
(otherwise);
1309
project.
AppendChild
(choose);
1310
choose.
AppendChild
(when);
1311
choose.
AppendChild
(otherwise);
1416
project.
AppendChild
(target1);
1465
project.
AppendChild
(target1);
1506
project.
AppendChild
(target1);
1640
project.
AppendChild
(project.CreatePropertyGroupElement());
1932
project.
AppendChild
(choose);
1933
choose.
AppendChild
(when);
1934
when.
AppendChild
(ig1);
1939
choose.
AppendChild
(otherwise);
1940
otherwise.
AppendChild
(ig2);
2301
current.
AppendChild
(choose);
2302
choose.
AppendChild
(when);
2379
group2.
AppendChild
(item1);
2380
group2.
AppendChild
(item2);
2402
group2.
AppendChild
(item1);
2425
group2.
AppendChild
(item1);
2448
group2.
AppendChild
(item1);
2471
group2.
AppendChild
(item1);
2495
group2.
AppendChild
(item1);
2496
group2.
AppendChild
(item2);
Construction\ElementLocationPublic_Tests.cs (3)
33
project.
AppendChild
(target);
50
project.
AppendChild
(target);
71
project.
AppendChild
(target);
Construction\ProjectOnErrorElement_Tests.cs (2)
261
target.
AppendChild
(onError);
279
target.
AppendChild
(onError);
Construction\ProjectRootElement_Tests.cs (8)
1172
target.
AppendChild
(pre.CreateOnErrorElement("someTarget"));
1185
pre.
AppendChild
(choose);
1187
choose.
AppendChild
(when1);
1188
when1.
AppendChild
(pre.CreatePropertyGroupElement());
1190
choose.
AppendChild
(otherwise);
1191
otherwise.
AppendChild
(pre.CreateItemGroupElement());
1210
pre.
AppendChild
(extensions);
1225
pre.
AppendChild
(extensions);
Definition\ProjectCollection_Tests.cs (3)
1355
pre.
AppendChild
(pre.CreatePropertyGroupElement());
1365
pre.
AppendChild
(pre.CreatePropertyGroupElement());
1411
pre.
AppendChild
(pre.CreatePropertyGroupElement());
ObjectModelRemoting\Helpers\ViewValidation.construction.cs (1)
33
appendWhere.
AppendChild
(c1Where);
ObjectModelRemoting\LinkedConstructionModify_Tests.cs (1)
373
xmlPair.View.
AppendChild
(chooseCreataed.View);
ObjectModelRemoting\LinkedSpecialCasesScenarios.cs (2)
119
Assert.ThrowsAny<InvalidOperationException>(() => xmlPair.View.
AppendChild
(cloned));
126
xmlPair.View.
AppendChild
(cloned);