18 references to CreateWhenElement
Microsoft.Build (2)
Construction\ProjectWhenElement.cs (1)
89return owner.CreateWhenElement(Condition);
ObjectModelRemoting\ConstructionObjectLinks\ProjectRootElementLink.cs (1)
181/// Facilitate remoting the <see cref="ProjectRootElement.CreateWhenElement"/>.
Microsoft.Build.Engine.OM.UnitTests (16)
Construction\ConstructionEditing_Tests.cs (11)
181ProjectWhenElement when = project.CreateWhenElement("c"); 197ProjectWhenElement when = project.CreateWhenElement("c"); 213ProjectWhenElement when = project.CreateWhenElement("c"); 231ProjectWhenElement when = project.CreateWhenElement("c"); 1240ProjectWhenElement when = project.CreateWhenElement("c"); 1259choose.AppendChild(project.CreateWhenElement("c")); 1275choose.AppendChild(project.CreateWhenElement("c")); 1290ProjectWhenElement when = project.CreateWhenElement("c"); 1306ProjectWhenElement when = project.CreateWhenElement("c"); 1930ProjectWhenElement when = project.CreateWhenElement("c"); 2300ProjectWhenElement when = project.CreateWhenElement("c");
Construction\ProjectRootElement_Tests.cs (1)
1186var when1 = pre.CreateWhenElement("some condition");
ObjectModelRemoting\LinkedConstructionModify_Tests.cs (3)
130xmlPair.CreateWithVerify<ProjectWhenElement>((p) => p.CreateWhenElement("condition")); 384choose.Append2NewLabeledChildrenWithVerify<ProjectWhenElement>("when", (p, l) => p.CreateWhenElement($"'$(c)' == '{l}'"), out var when1, out var when2); 414var when = choose.AppendNewChaildWithVerify<ProjectWhenElement>(ObjectType.View, "when", (p, s) => p.CreateWhenElement("true"), (p, s) => true);
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectRootElementLink.cs (1)
132return (MockProjectWhenElementLinkRemoter)this.Export(this.ProjectXml.CreateWhenElement(condition));