This documentation is archived and is not being maintained.
ProjectTargetElement Class
Visual Studio 2010
Represents a Target Element (MSBuild) in an MSBuild project.
System::Object
Microsoft.Build.Construction::ProjectElement
Microsoft.Build.Construction::ProjectElementContainer
Microsoft.Build.Construction::ProjectTargetElement
Microsoft.Build.Construction::ProjectElement
Microsoft.Build.Construction::ProjectElementContainer
Microsoft.Build.Construction::ProjectTargetElement
Assembly: Microsoft.Build (in Microsoft.Build.dll)
The ProjectTargetElement type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | AfterTargets | Gets or sets the AfterTargets attribute value. |
![]() | AllChildren | Gets a recursive depth-first enumerator over all child elements. (Inherited from ProjectElementContainer.) |
![]() | AllParents | All parent elements of this element, going up to the ProjectRootElement. (Inherited from ProjectElement.) |
![]() | BeforeTargets | Gets or sets the BeforeTargets attribute value. |
![]() | Children | Gets all child elements. (Inherited from ProjectElementContainer.) |
![]() | ChildrenReversed | Gets all child elements, starting from the last child. (Inherited from ProjectElementContainer.) |
![]() | Condition | Gets or sets the Condition attribute of this project element. (Inherited from ProjectElement.) |
![]() | ContainingProject | Gets the project root container that contains this project. (Inherited from ProjectElement.) |
![]() | Count | Gets the number of child elements. (Inherited from ProjectElementContainer.) |
![]() | DependsOnTargets | Gets or sets the DependsOnTargets attribute value. Returns empty string if it is not present. Removes the attribute if the value to set is empty. |
![]() | FirstChild | Gets the first child element. (Inherited from ProjectElementContainer.) |
![]() | Inputs | Gets or sets the Inputs attribute value. Returns empty string if it is not present. Removes the attribute if the value to set is empty. |
![]() | ItemGroups | Gets all child item groups |
![]() | KeepDuplicateOutputs | Gets or sets the TrimDuplicateOutputs attribute value. |
![]() | Label | Gets or sets the Label value. (Inherited from ProjectElement.) |
![]() | LastChild | Gets the last child element. (Inherited from ProjectElementContainer.) |
![]() | Name | Gets and sets the name of the this target. |
![]() | NextSibling | Gets the next sibling of this project element. (Inherited from ProjectElement.) |
![]() | OnErrors | Get all child OnError Element (MSBuild). |
![]() | Outputs | Gets or sets the Outputs attribute value. Returns empty string if it is not present. Removes the attribute if the value to set is empty. |
![]() | Parent | Gets the project element container that contains this project. (Inherited from ProjectElement.) |
![]() | PreviousSibling | Gets the previous sibling of this project element. (Inherited from ProjectElement.) |
![]() | PropertyGroups | Gets all child property groups. |
![]() | Returns | Gets or sets the Returns attribute value. |
![]() | Tasks | Gets all child tasks. |
| Name | Description | |
|---|---|---|
![]() | AddItemGroup | Adds an item group after the last child. |
![]() | AddPropertyGroup | Adds a property group after the last child. |
![]() | AddTask | Adds a task to this target after any existing task. |
![]() | AppendChild | Appends the child element as the last child of this project container. (Inherited from ProjectElementContainer.) |
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | InsertAfterChild | Inserts the child element after the reference element. (Inherited from ProjectElementContainer.) |
![]() | InsertBeforeChild | Inserts the child element before the reference element. (Inherited from ProjectElementContainer.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | PrependChild | Prepends the child element as the first child of this project container. (Inherited from ProjectElementContainer.) |
![]() | RemoveAllChildren | Removes all the children, if any, from this project container. (Inherited from ProjectElementContainer.) |
![]() | RemoveChild | Removes a child element from this project container. (Inherited from ProjectElementContainer.) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show:
