ProjectTargetInstance Class

System.Object
  Microsoft.Build.Execution.ProjectTargetInstance

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

public sealed class ProjectTargetInstance

The ProjectTargetInstance type exposes the following members.

  NameDescription
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.
Top

  NameDescription
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.)
Top

This is an immutable class.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

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
Show:
© 2014 Microsoft