ProjectRootElement.CreateOnErrorElement(String) Method

Definition

Creates an on error node. Caller must add it to the location of choice in the project.

C#
public Microsoft.Build.Construction.ProjectOnErrorElement CreateOnErrorElement(string executeTargets);

Parameters

executeTargets
String

The targets to execute if a task fails.

Returns

The OnError element.

Remarks

Caller must add the OnError element to the location of choice in the project.

Applies to

Ürün Sürümler
MSBuild 15, 16, 17
MSBuild (.NET Core) 15, 16, 17