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)
944
AppendChild
(import);
957
AppendChild
(importGroup);
1048
AppendChild
(newItemGroup);
1097
itemDefinitionGroupToAddTo.
AppendChild
(newItemDefinition);
1217
AppendChild
(target);
1230
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);
966
traversalProject.
AppendChild
(importAfter);
967
traversalProject.
AppendChild
(directorySolutionTargetsPropertyGroup);
968
traversalProject.
AppendChild
(directorySolutionTargetsImport);
969
traversalProject.
AppendChild
(importAfterLocal);
971
directorySolutionTargetsPropertyGroup.
AppendChild
(directorySolutionTargetsFileProperty);
972
directorySolutionTargetsPropertyGroup.
AppendChild
(directorySolutionTargetsBasePathProperty);
973
directorySolutionTargetsPropertyGroup.
AppendChild
(directorySolutionTargetsPathProperty);
975
directorySolutionPropsPropertyGroup.
AppendChild
(directorySolutionPropsFileProperty);
976
directorySolutionPropsPropertyGroup.
AppendChild
(directorySolutionPropsBasePathProperty);
977
directorySolutionPropsPropertyGroup.
AppendChild
(directorySolutionPropsPathProperty);
2226
traversalProject.
AppendChild
(configurationDefaultingPropertyGroup);
2232
traversalProject.
AppendChild
(platformDefaultingPropertyGroup);
2260
traversalProject.
AppendChild
(venusConfiguration);
2272
traversalProject.
AppendChild
(globalProperties);
2289
traversalProject.
AppendChild
(frameworkVersionProperties);
Construction\UsingTaskParameterGroupElement.cs (1)
83
AppendChild
(newParameter);
Definition\Project.cs (1)
3087
groupToAppendTo.
AppendChild
(itemElement);
Instance\ProjectItemDefinitionInstance.cs (1)
213
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)
60
project.
AppendChild
(target);
81
project.
AppendChild
(target1);
82
project.
AppendChild
(target2);
110
project2.
AppendChild
(target);
169
choose.
AppendChild
(choose);
183
project.
AppendChild
(choose);
184
choose.
AppendChild
(when);
185
when.
AppendChild
(choose);
199
project.
AppendChild
(choose);
200
choose.
AppendChild
(when);
216
project.
AppendChild
(choose1);
217
choose1.
AppendChild
(when);
234
project.
AppendChild
(choose1);
235
choose1.
AppendChild
(when);
251
project.
AppendChild
(target);
310
target.
AppendChild
(task);
369
project.
AppendChild
(target);
393
project.
AppendChild
(target);
589
project.
AppendChild
(target);
590
target.
AppendChild
(task);
635
target.
AppendChild
(project);
650
project.
AppendChild
(target);
651
target.
AppendChild
(item);
666
project.
AppendChild
(itemGroup);
667
itemGroup.
AppendChild
(item);
681
project.
AppendChild
(target);
682
target.
AppendChild
(itemGroup);
683
itemGroup.
AppendChild
(item);
709
project.
AppendChild
(target);
710
target.
AppendChild
(itemGroup);
711
itemGroup.
AppendChild
(item);
745
project.
AppendChild
(itemGroup);
746
itemGroup.
AppendChild
(itemRemoveFirst);
1153
project.
AppendChild
(itemGroup);
1154
itemGroup.
AppendChild
(firstIncludeItem);
1155
itemGroup.
AppendChild
(secondIncludeItem);
1159
firstUpdateItem.
AppendChild
(firstMetadata);
1162
itemGroup.
AppendChild
(secondUpdateItem);
1163
secondUpdateItem.
AppendChild
(secondMetadata);
1226
itemGroup1.
AppendChild
(item);
1244
project.
AppendChild
(choose);
1245
choose.
AppendChild
(when);
1259
project.
AppendChild
(choose);
1260
choose.
AppendChild
(project.CreateWhenElement("c"));
1261
choose.
AppendChild
(project.CreateOtherwiseElement());
1262
choose.
AppendChild
(project.CreateOtherwiseElement());
1275
project.
AppendChild
(choose);
1276
choose.
AppendChild
(project.CreateWhenElement("c"));
1277
choose.
AppendChild
(project.CreateOtherwiseElement());
1294
project.
AppendChild
(choose);
1295
choose.
AppendChild
(otherwise);
1310
project.
AppendChild
(choose);
1311
choose.
AppendChild
(when);
1312
choose.
AppendChild
(otherwise);
1417
project.
AppendChild
(target1);
1466
project.
AppendChild
(target1);
1507
project.
AppendChild
(target1);
1641
project.
AppendChild
(project.CreatePropertyGroupElement());
1933
project.
AppendChild
(choose);
1934
choose.
AppendChild
(when);
1935
when.
AppendChild
(ig1);
1940
choose.
AppendChild
(otherwise);
1941
otherwise.
AppendChild
(ig2);
2302
current.
AppendChild
(choose);
2303
choose.
AppendChild
(when);
2380
group2.
AppendChild
(item1);
2381
group2.
AppendChild
(item2);
2403
group2.
AppendChild
(item1);
2426
group2.
AppendChild
(item1);
2449
group2.
AppendChild
(item1);
2472
group2.
AppendChild
(item1);
2496
group2.
AppendChild
(item1);
2497
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)
1176
target.
AppendChild
(pre.CreateOnErrorElement("someTarget"));
1189
pre.
AppendChild
(choose);
1191
choose.
AppendChild
(when1);
1192
when1.
AppendChild
(pre.CreatePropertyGroupElement());
1194
choose.
AppendChild
(otherwise);
1195
otherwise.
AppendChild
(pre.CreateItemGroupElement());
1214
pre.
AppendChild
(extensions);
1229
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);