3 instantiations of ProjectOnErrorElement
Microsoft.Build (3)
Construction\ProjectOnErrorElement.cs (1)
78var onError = new ProjectOnErrorElement(element, containingProject) { ExecuteTargetsAttribute = executeTargets };
Evaluation\ProjectParser.cs (1)
620child = onError = new ProjectOnErrorElement(childElement, target, _project);
ObjectModelRemoting\LinkedObjectFactory.cs (1)
180return new ProjectOnErrorElement(link);
38 references to ProjectOnErrorElement
Microsoft.Build (12)
Construction\ProjectOnErrorElement.cs (2)
74internal static ProjectOnErrorElement CreateDisconnected(string executeTargets, ProjectRootElement containingProject) 78var onError = new ProjectOnErrorElement(element, containingProject) { ExecuteTargetsAttribute = executeTargets };
Construction\ProjectRootElement.cs (2)
1356public ProjectOnErrorElement CreateOnErrorElement(string executeTargets) 1358return Link != null ? RootLink.CreateOnErrorElement(executeTargets) : ProjectOnErrorElement.CreateDisconnected(executeTargets, this);
Construction\ProjectTargetElement.cs (2)
74public ICollection<ProjectOnErrorElement> OnErrors => GetChildrenOfType<ProjectOnErrorElement>();
Evaluation\Evaluator.cs (2)
485private static ProjectOnErrorInstance ReadOnErrorElement(ProjectOnErrorElement projectOnErrorElement) 567case ProjectOnErrorElement onError:
Evaluation\ProjectParser.cs (1)
587ProjectOnErrorElement onError = null;
ObjectModelRemoting\ConstructionObjectLinks\ProjectElementLink.cs (1)
176/// Allow for creating a local representation to external object of type <see cref="ProjectOnErrorElement"/>
ObjectModelRemoting\ConstructionObjectLinks\ProjectRootElementLink.cs (1)
123public abstract ProjectOnErrorElement CreateOnErrorElement(string executeTargets);
ObjectModelRemoting\LinkedObjectFactory.cs (1)
178public ProjectOnErrorElement Create(ProjectOnErrorElementLink link)
Microsoft.Build.Engine.OM.UnitTests (26)
Construction\ProjectOnErrorElement_Tests.cs (15)
26ProjectOnErrorElement onError = GetOnError(); 54ProjectOnErrorElement onError1 = onErrors[0]; 55ProjectOnErrorElement onError2 = onErrors[1]; 82ProjectOnErrorElement onError = (ProjectOnErrorElement)Helpers.GetFirst(target.Children); 108ProjectOnErrorElement onError = (ProjectOnErrorElement)Helpers.GetFirst(target.Children); 219ProjectOnErrorElement onError = GetOnError(); 234ProjectOnErrorElement onError = GetOnError(); 247ProjectOnErrorElement onError = GetOnError(); 260ProjectOnErrorElement onError = project.CreateOnErrorElement("et"); 278ProjectOnErrorElement onError = project.CreateOnErrorElement("et"); 291private static ProjectOnErrorElement GetOnError() 304ProjectOnErrorElement onError = (ProjectOnErrorElement)Helpers.GetFirst(target.Children);
ObjectModelRemoting\Helpers\ViewValidation.construction.cs (2)
964public static void Verify(ProjectOnErrorElement viewXml, ProjectOnErrorElement realXml, ValidationContext context = null)
ObjectModelRemoting\Helpers\ViewValidation.cs (1)
244if (VerifyCheckType<ProjectOnErrorElement>(view, real, context, Verify))
ObjectModelRemoting\LinkedConstructionModify_Tests.cs (3)
113xmlPair.CreateWithVerify<ProjectOnErrorElement>((p) => p.CreateOnErrorElement("target")); 163newTarget1.Append2NewChildrenWithVerify<ProjectOnErrorElement>("errTarget", (p, et) => p.CreateOnErrorElement(et), (oe, et) => oe.ExecuteTargetsAttribute == et, out var newOnErr1, out var newOnErr2); 778var onErr = newTarget.AppendNewChaildWithVerify<ProjectOnErrorElement>(ObjectType.View, "errTarget", (p, et) => p.CreateOnErrorElement(et), (oe, et) => oe.ExecuteTargetsAttribute == et);
ObjectModelRemoting\LinkedConstructionReadOnly_Tests.cs (2)
336var realCollection = preReal.AllChildren.OfType<ProjectOnErrorElement>().ToList(); 337var viewCollection = preView.AllChildren.OfType<ProjectOnErrorElement>().ToList();
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectRootElementLink.cs (2)
257public override ProjectOnErrorElement CreateOnErrorElement(string executeTargets) 259return (ProjectOnErrorElement)this.Proxy.CreateOnErrorElement(executeTargets).Import(this.Linker);
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\ProjectElemetExportHelper.cs (1)
60ElementInfo.New<ProjectOnErrorElement , MockProjectOnErrorElementLinkRemoter>(),