XDocumentExtensions.

GetTargets(XDocument) Method

Summary

Returns all <Target> build targets declared in the project (with their BeforeTargets / AfterTargets attributes and nested <Exec> commands).

Syntax

public static ICollection<BuildTarget> GetTargets(this XDocument document)

Parameters

Name Type Description
document XDocument the document

Return Value

Type Description
ICollection<BuildTarget> the collection of build targets