共用方式為


TaskExtension Class

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Contains properties to help extend a 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.

Inheritance Hierarchy

System.Object
  Microsoft.Build.Utilities.Task
    Microsoft.Build.Tasks.TaskExtension
      More...

Namespace:  Microsoft.Build.Tasks
Assembly:  Microsoft.Build.Tasks.Core (in Microsoft.Build.Tasks.Core.dll)

Syntax

'Declaration
Public MustInherit Class TaskExtension _
    Inherits Task
public abstract class TaskExtension : Task
public ref class TaskExtension abstract : public Task
[<AbstractClass>]
type TaskExtension =  
    class 
        inherit Task 
    end
public abstract class TaskExtension extends Task

The TaskExtension type exposes the following members.

Properties

  Name Description
Public property BuildEngine Gets or sets the instance of the IBuildEngine object used by 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. (Inherited from Task.)
Public property BuildEngine2 Gets the instance of the IBuildEngine2 object used by 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. (Inherited from Task.)
Public property BuildEngine3 Gets the instance of the IBuildEngine3 object used by 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. (Inherited from Task.)
Public property BuildEngine4 Gets the instance of the IBuildEngine4 object used by 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. (Inherited from Task.)
Protected property HelpKeywordPrefix Gets or sets the prefix used to compose Help keywords from resource names.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 Task.)
Public property HostObject Gets or sets the host object associated with 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. (Inherited from Task.)
Public property Log Infrastructure. Gets an instance of a TaskLoggingHelperExtension containing task logging methods.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.
Protected property TaskResources Gets or sets the culture-specific resources associated with 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. (Inherited from Task.)

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Public method Execute When overridden in a derived class, executes 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. (Inherited from Task.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

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.Tasks Namespace

Inheritance Hierarchy

System.Object
  Microsoft.Build.Utilities.Task
    Microsoft.Build.Tasks.TaskExtension
      Microsoft.Build.Tasks.AssignCulture
      Microsoft.Build.Tasks.AssignLinkMetadata
      Microsoft.Build.Tasks.AssignTargetPath
      Microsoft.Build.Tasks.CallTarget
      Microsoft.Build.Tasks.CombinePath
      Microsoft.Build.Tasks.ConvertToAbsolutePath
      Microsoft.Build.Tasks.Copy
      Microsoft.Build.Tasks.CreateItem
      Microsoft.Build.Tasks.CreateManifestResourceName
      Microsoft.Build.Tasks.CreateProperty
      Microsoft.Build.Tasks.Delete
      Microsoft.Build.Tasks.Error
      Microsoft.Build.Tasks.ErrorFromResources
      Microsoft.Build.Tasks.FindAppConfigFile
      Microsoft.Build.Tasks.FindInList
      Microsoft.Build.Tasks.FindInvalidProjectReferences
      Microsoft.Build.Tasks.FindUnderPath
      Microsoft.Build.Tasks.FormatUrl
      Microsoft.Build.Tasks.FormatVersion
      Microsoft.Build.Tasks.GenerateBindingRedirects
      Microsoft.Build.Tasks.GenerateBootstrapper
      Microsoft.Build.Tasks.GenerateResource
      Microsoft.Build.Tasks.GenerateTrustInfo
      Microsoft.Build.Tasks.GetAssemblyIdentity
      Microsoft.Build.Tasks.GetFrameworkPath
      Microsoft.Build.Tasks.GetFrameworkSdkPath
      Microsoft.Build.Tasks.GetInstalledSDKLocations
      Microsoft.Build.Tasks.GetReferenceAssemblyPaths
      Microsoft.Build.Tasks.GetSDKReferenceFiles
      Microsoft.Build.Tasks.MakeDir
      Microsoft.Build.Tasks.Message
      Microsoft.Build.Tasks.Move
      Microsoft.Build.Tasks.MSBuild
      Microsoft.Build.Tasks.ReadLinesFromFile
      Microsoft.Build.Tasks.RemoveDir
      Microsoft.Build.Tasks.RemoveDuplicates
      Microsoft.Build.Tasks.RequiresFramework35SP1Assembly
      Microsoft.Build.Tasks.ResolveAssemblyReference
      Microsoft.Build.Tasks.ResolveCodeAnalysisRuleSet
      Microsoft.Build.Tasks.ResolveKeySource
      Microsoft.Build.Tasks.ResolveManifestFiles
      Microsoft.Build.Tasks.ResolveNativeReference
      Microsoft.Build.Tasks.ResolveProjectBase
      Microsoft.Build.Tasks.ResolveSDKReference
      Microsoft.Build.Tasks.Touch
      Microsoft.Build.Tasks.Warning
      Microsoft.Build.Tasks.WriteCodeFragment
      Microsoft.Build.Tasks.WriteLinesToFile
      Microsoft.Build.Tasks.XmlPeek
      Microsoft.Build.Tasks.XmlPoke
      Microsoft.Build.Tasks.XslTransformation