Partager via


ITaskHost Interface

Passes host objects from an integrated development environment (IDE) to individual tasks.

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.

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

Syntax

'Declaration
<InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)> _
<ComVisibleAttribute(True)> _
<GuidAttribute("9049A481-D0E9-414f-8F92-D4F67A0359A6")> _
Public Interface ITaskHost
[InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)]
[ComVisibleAttribute(true)]
[GuidAttribute("9049A481-D0E9-414f-8F92-D4F67A0359A6")]
public interface ITaskHost
[InterfaceTypeAttribute(ComInterfaceType::InterfaceIsIUnknown)]
[ComVisibleAttribute(true)]
[GuidAttribute(L"9049A481-D0E9-414f-8F92-D4F67A0359A6")]
public interface class ITaskHost
[<InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)>]
[<ComVisibleAttribute(true)>]
[<GuidAttribute("9049A481-D0E9-414f-8F92-D4F67A0359A6")>]
type ITaskHost =  interface end
public interface ITaskHost

Remarks

Empty interface.

Depending on the task itself and what kinds parameters and functionality it exposes, the task should define its own interface that inherits from this one, and then use that interface to communicate with the host.

See Also

Reference

Microsoft.Build.Framework Namespace