ProjectTaskInstance Class

Wraps a Task element.

MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.

Inheritance Hierarchy

System.Object
  Microsoft.Build.Execution.ProjectTargetInstanceChild
    Microsoft.Build.Execution.ProjectTaskInstance

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

Syntax

'Declaration
Public NotInheritable Class ProjectTaskInstance _
    Inherits ProjectTargetInstanceChild
public sealed class ProjectTaskInstance : ProjectTargetInstanceChild
public ref class ProjectTaskInstance sealed : public ProjectTargetInstanceChild
[<Sealed>]
type ProjectTaskInstance =  
    class 
        inherit ProjectTargetInstanceChild 
    end
public final class ProjectTaskInstance extends ProjectTargetInstanceChild

The ProjectTaskInstance type exposes the following members.

Properties

  Name Description
Public property Condition Gets the unevaluated Condition attribute of this task.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Overrides ProjectTargetInstanceChild.Condition.)
Public property ConditionLocation Location of the condition, if anyMSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Overrides ProjectTargetInstanceChild.ConditionLocation.)
Public property ContinueOnError Gets the unevaluated ContinueOnError attribute of the task. MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.
Public property ContinueOnErrorLocation Location of the ContinueOnError attribute, if anyMSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.
Public property FullPath Gets the full path to the file from which this task originated. MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Inherited from ProjectTargetInstanceChild.)
Public property Location Location of the original elementMSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Overrides ProjectTargetInstanceChild.Location.)
Public property MSBuildArchitecture Unevaluated MSBuildArchitecture on the task. May be empty string.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.
Public property MSBuildArchitectureLocation Location of the MSBuildArchitecture attribute, if anyMSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.
Public property MSBuildRuntime Unevaluated MSBuildRuntime on the task. May be empty string.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.
Public property MSBuildRuntimeLocation Location of the MSBuildRuntime attribute, if anyMSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.
Public property Name Gets the name of the task, possibly qualified, as it appears in the project.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.
Public property Outputs Gets an ordered set of the output property and item objects of this task. MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.
Public property Parameters Gets an unordered set of the task parameter names and unevaluated values of this task. MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

Remarks

This is an immutable class

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.Build.Execution Namespace