ProjectRootElement.CreateOnErrorElement(String) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates an on error node. Caller must add it to the location of choice in the project.
public:
Microsoft::Build::Construction::ProjectOnErrorElement ^ CreateOnErrorElement(System::String ^ executeTargets);
C#
public Microsoft.Build.Construction.ProjectOnErrorElement CreateOnErrorElement(string executeTargets);
member this.CreateOnErrorElement : string -> Microsoft.Build.Construction.ProjectOnErrorElement
Public Function CreateOnErrorElement (executeTargets As String) As ProjectOnErrorElement
- executeTargets
- String
The targets to execute if a task fails.
The OnError element.
Caller must add the OnError element to the location of choice in the project.
Ürün | Sürümler |
---|---|
MSBuild | 15, 16, 17 |
MSBuild (.NET Core) | 15, 16, 17 |