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