Target Class
Definition
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.
This class (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution
This class represents a single target in its parent project.
public ref class Target : System::Collections::IEnumerable
public class Target : System.Collections.IEnumerable
type Target = class
interface IEnumerable
Public Class Target
Implements IEnumerable
- Inheritance
-
Target
- Implements
Remarks
Warning
This class (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.Construction Microsoft.Build.Evaluation Microsoft.Build.Execution
Properties
Condition |
This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution Accessor for the item's "condition". Returned unevaluated. |
DependsOnTargets |
This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution Gets the target's unevaluated "DependsOnTargets" string. Returns unevaluated. |
Inputs |
This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution Gets the target's unevaluated "Inputs" string. Returns unevaluated. |
IsImported |
This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution This returns a boolean telling you whether this particular target was imported from another project, or whether it was defined in the main project. |
Name |
This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution Gets the target's name as specified in the "Name" attribute. The value of this attribute is never evaluated. |
Outputs |
This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution Gets the target's unevaluated "Outputs" string. Returns unevaluated. |
Methods
AddNewTask(String) |
This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution Adds a task with the specified name to the end of this target. This method does all of the work to manipulate the project's XML content. |
GetEnumerator() |
This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution Allows the caller to use a foreach loop to enumerate through the individual BuildTask objects contained within this Target. |
RemoveTask(BuildTask) |
This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution Removes the specified BuildTask from the target. This method correctly updates the project's XML content, so the task will no longer show up when the project is saved out. |