Thread ClassMSBuild Extension Pack Help 4.0.12.0
Valid TaskActions are:

Abort (Warning: use only in exceptional circumstances to force an abort)

Sleep (Required: Timeout)

SpinWait (Required: Iterations)

Remote Execution Support: NA

Inheritance Hierarchy

SystemObject
  Microsoft.Build.UtilitiesTask
    MSBuild.ExtensionPackBaseTask
      MSBuild.ExtensionPack.FrameworkThread

Namespace: MSBuild.ExtensionPack.Framework
Assembly: MSBuild.ExtensionPack (in MSBuild.ExtensionPack.dll) Version: 4.0.0.0

The Thread type exposes the following members.

Constructors

  NameDescription
Public methodThread
Top
Properties

  NameDescription
Public propertyIterations
Number of iterations to wait for
Public propertyTimeout
Number of millseconds to sleep for
Top
Examples

<Project ToolsVersion="4.0" DefaultTargets="Default" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
    <PropertyGroup>
        <TPath>$(MSBuildProjectDirectory)\..\MSBuild.ExtensionPack.tasks</TPath>
        <TPath Condition="Exists('$(MSBuildProjectDirectory)\..\..\Common\MSBuild.ExtensionPack.tasks')">$(MSBuildProjectDirectory)\..\..\Common\MSBuild.ExtensionPack.tasks</TPath>
    </PropertyGroup>
    <Import Project="$(TPath)"/>
    <Target Name="Default">
        <!-- Set a thread to sleep for a period -->
        <MSBuild.ExtensionPack.Framework.Thread TaskAction="Sleep" Timeout="2000"/>
        <!-- Set a thread to spinwait for a period -->
        <MSBuild.ExtensionPack.Framework.Thread TaskAction="SpinWait" Iterations="1000000000"/>
        <!-- Abort a thread. Only use in exceptional circumstances -->
        <!--<MSBuild.ExtensionPack.Framework.Thread TaskAction="Abort"/>-->
    </Target>
</Project>
See Also

Reference