ToolTask.Timeout Property

Definition

Project visible property that allows the user to specify an amount of time after which the task executable is terminated.

C#
public virtual int Timeout { get; set; }
C#
public virtual int Timeout { [System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")] get; [System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")] set; }

Property Value

Time-out in milliseconds. Default is Infinite (no time-out).

Attributes

Applies to

Product Versions
MSBuild 15, 16, 17
MSBuild (.NET Core) 15, 16, 17