3 instantiations of ProjectOtherwiseElement
Microsoft.Build (3)
Construction\ProjectOtherwiseElement.cs (1)
92return new ProjectOtherwiseElement(element, containingProject);
Evaluation\ProjectParser.cs (1)
833ProjectOtherwiseElement otherwise = new ProjectOtherwiseElement(element, parent, _project);
ObjectModelRemoting\LinkedObjectFactory.cs (1)
185return new ProjectOtherwiseElement(link);
36 references to ProjectOtherwiseElement
Microsoft.Build (18)
Construction\ProjectChooseElement.cs (4)
67public ProjectOtherwiseElement OtherwiseElement 71ProjectOtherwiseElement otherwise = LastChild as ProjectOtherwiseElement; 107ErrorUtilities.VerifyThrowInvalidOperation(parent is ProjectRootElement || parent is ProjectWhenElement || parent is ProjectOtherwiseElement, "OM_CannotAcceptParent");
Construction\ProjectItemElement.cs (1)
476ErrorUtilities.VerifyThrowInvalidOperation(parent.Parent is ProjectRootElement || parent.Parent is ProjectTargetElement || parent.Parent is ProjectWhenElement || parent.Parent is ProjectOtherwiseElement, "OM_CannotAcceptParent");
Construction\ProjectItemGroupElement.cs (1)
177ErrorUtilities.VerifyThrowInvalidOperation(parent is ProjectRootElement || parent is ProjectTargetElement || parent is ProjectWhenElement || parent is ProjectOtherwiseElement, "OM_CannotAcceptParent");
Construction\ProjectOtherwiseElement.cs (3)
88internal static ProjectOtherwiseElement CreateDisconnected(ProjectRootElement containingProject) 102ErrorUtilities.VerifyThrowInvalidOperation(!(nextSibling is ProjectWhenElement) && !(previousSibling is ProjectOtherwiseElement) && !(nextSibling is ProjectOtherwiseElement), "OM_NoOtherwiseBeforeWhenOrOtherwise");
Construction\ProjectPropertyGroupElement.cs (1)
110ErrorUtilities.VerifyThrowInvalidOperation(parent is ProjectRootElement || parent is ProjectTargetElement || parent is ProjectWhenElement || parent is ProjectOtherwiseElement, "OM_CannotAcceptParent");
Construction\ProjectRootElement.cs (2)
1365public ProjectOtherwiseElement CreateOtherwiseElement() 1367return Link != null ? RootLink.CreateOtherwiseElement() : ProjectOtherwiseElement.CreateDisconnected(this);
Construction\ProjectWhenElement.cs (1)
83ErrorUtilities.VerifyThrowInvalidOperation(!(previousSibling is ProjectOtherwiseElement), "OM_NoOtherwiseBeforeWhenOrOtherwise");
Evaluation\ProjectParser.cs (2)
829private ProjectOtherwiseElement ParseProjectOtherwiseElement(XmlElementWithLocation element, ProjectChooseElement parent, int nestingDepth) 833ProjectOtherwiseElement otherwise = new ProjectOtherwiseElement(element, parent, _project);
ObjectModelRemoting\ConstructionObjectLinks\ProjectElementContainerLink.cs (1)
98/// Allow for creating a local representation to external object of type <see cref="ProjectOtherwiseElement"/>
ObjectModelRemoting\ConstructionObjectLinks\ProjectRootElementLink.cs (1)
128public abstract ProjectOtherwiseElement CreateOtherwiseElement();
ObjectModelRemoting\LinkedObjectFactory.cs (1)
183public ProjectOtherwiseElement Create(ProjectOtherwiseElementLink link)
Microsoft.Build.Conversion.Core (2)
ProjectFileConverter.cs (2)
1215var otherwiseIfVsVersionIsDev12Plus = xmakeProject.CreateOtherwiseElement(); // (3) 1249var otherwiseIfVsVersionIsDev12Plus = xmakeProject.CreateOtherwiseElement();
Microsoft.Build.Engine.OM.UnitTests (16)
Construction\ConstructionEditing_Tests.cs (4)
1242ProjectOtherwiseElement otherwise = project.CreateOtherwiseElement(); 1292ProjectOtherwiseElement otherwise = project.CreateOtherwiseElement(); 1308ProjectOtherwiseElement otherwise = project.CreateOtherwiseElement(); 1938ProjectOtherwiseElement otherwise = project.CreateOtherwiseElement();
Construction\ProjectRootElement_Tests.cs (1)
1193var otherwise = pre.CreateOtherwiseElement();
ObjectModelRemoting\Helpers\ViewValidation.construction.cs (2)
592public static void Verify(ProjectOtherwiseElement viewXml, ProjectOtherwiseElement realXml, ValidationContext context = null)
ObjectModelRemoting\Helpers\ViewValidation.cs (1)
149if (VerifyCheckType<ProjectOtherwiseElement>(view, real, context, Verify))
ObjectModelRemoting\LinkedConstructionModify_Tests.cs (3)
114xmlPair.CreateWithVerify<ProjectOtherwiseElement>((p) => p.CreateOtherwiseElement()); 391var otherWise = choose.AppendNewChaildWithVerify<ProjectOtherwiseElement>(ObjectType.View, "when", (p, l) => p.CreateOtherwiseElement(), (p, l) => true); 453var otherwise = choose.AppendNewChaildWithVerify<ProjectOtherwiseElement>(ObjectType.View, "when", (p, s) => p.CreateOtherwiseElement(), (p, s) => true);
ObjectModelRemoting\LinkedConstructionReadOnly_Tests.cs (2)
218var realCollection = preReal.AllChildren.OfType<ProjectOtherwiseElement>().ToList(); 219var viewCollection = preView.AllChildren.OfType<ProjectOtherwiseElement>().ToList();
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectRootElementLink.cs (2)
262public override ProjectOtherwiseElement CreateOtherwiseElement() 264return (ProjectOtherwiseElement)this.Proxy.CreateOtherwiseElement().Import(this.Linker);
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\ProjectElemetExportHelper.cs (1)
61ElementInfo.New<ProjectOtherwiseElement , MockProjectOtherwiseElementLinkRemoter>(),