ProjectTargetInstance Class


Namespace:  Microsoft.Build.Execution
Assembly:  Microsoft.Build (in Microsoft.Build.dll)

[DebuggerDisplayAttribute("Name={name} Count={children.Count} Condition={condition} Inputs={inputs} Outputs={outputs} DependsOnTargets={dependsOnTargets}")]
public sealed class ProjectTargetInstance

The ProjectTargetInstance type exposes the following members.

Public propertyAfterTargetsLocationGets the location of the AfterTargets attribute.
Public propertyBeforeTargetsLocationGets the location of the BeforeTargets attribute.
Public propertyChildrenGets a list of the children of this target. The build iterates through this to get each task to execute.
Public propertyConditionGets the unevaluated Condition attribute of this target element.
Public propertyConditionLocationGets the location of the Condition attribute.
Public propertyDependsOnTargetsGets an unevaluated semicolon-delimited list of targets that this target depends on.
Public propertyDependsOnTargetsLocationGets the location of the DependsOnTargets attribute.
Public propertyFullPathGets the full path to the file from which this target originated.
Public propertyInputsGets the unevaluated inputs on this target element.
Public propertyInputsLocationGets the location of the Inputs attribute.
Public propertyKeepDuplicateOutputsGets an unevaluated condition which is used to delete duplicate outputs from this target.
Public propertyKeepDuplicateOutputsLocationGets the location of the KeepDuplicateOutputs attribute.
Public propertyLocationGets the location of the element itself.
Public propertyNameGets the name of the target.
Public propertyOnErrorChildrenGets a list of the children of this target that refer to OnError targets.
Public propertyOutputsGets the unevaluated outputs on this target element May be empty string.
Public propertyOutputsLocationGets the location of the Outputs attribute.
Public propertyReturnsGets the unevaluated return values on the target element as a string.
Public propertyReturnsLocationGets the location of the Returns attribute.
Public propertyTasksGets all the tasks that are immediate children of this target.

Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)

This is an immutable class.

.NET Framework

Supported in: 4.6, 4.5, 4

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft