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)
182ProjectWhenElement when = project.CreateWhenElement("c"); 198ProjectWhenElement when = project.CreateWhenElement("c"); 214ProjectWhenElement when = project.CreateWhenElement("c"); 232ProjectWhenElement when = project.CreateWhenElement("c"); 1241ProjectWhenElement when = project.CreateWhenElement("c"); 1260choose.AppendChild(project.CreateWhenElement("c")); 1276choose.AppendChild(project.CreateWhenElement("c")); 1291ProjectWhenElement when = project.CreateWhenElement("c"); 1307ProjectWhenElement when = project.CreateWhenElement("c"); 1931ProjectWhenElement when = project.CreateWhenElement("c"); 2301ProjectWhenElement when = project.CreateWhenElement("c");
Construction\ProjectRootElement_Tests.cs (1)
1190var 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));