< Back
BuildTask
Post
NAME BuildTask
SYNOPSIS
Create a build task object.
SYNTAX
BuildTask [-Name] <String> [-Stage] <String> [[-Order] <Int32>] [[-If] <ScriptBlock>] [-Definition] <ScriptBlock>
[<CommonParameters>]
DESCRIPTION
A build task is a predefined task used to build well-structured PowerShell projects.
PARAMETERS
-Name <String>
The name of the task.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Stage <String>
The stage during which the task will be invoked.
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Order <Int32>
Where the task should appear in the build order respective to the stage.
Required? false
Position? 3
Default value 1024
Accept pipeline input? false
Accept wildcard characters? false
-If <ScriptBlock>
The task will only be invoked if the filter condition is true.
Required? false
Position? 4
Default value { $true }
Accept pipeline input? false
Accept wildcard characters? false
-Definition <ScriptBlock>
The task implementation.
Required? true
Position? 5
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
Indented.BuildTask
RELATED LINKS
SYNOPSIS
Create a build task object.
SYNTAX
BuildTask [-Name] <String> [-Stage] <String> [[-Order] <Int32>] [[-If] <ScriptBlock>] [-Definition] <ScriptBlock>
[<CommonParameters>]
DESCRIPTION
A build task is a predefined task used to build well-structured PowerShell projects.
PARAMETERS
-Name <String>
The name of the task.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Stage <String>
The stage during which the task will be invoked.
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Order <Int32>
Where the task should appear in the build order respective to the stage.
Required? false
Position? 3
Default value 1024
Accept pipeline input? false
Accept wildcard characters? false
-If <ScriptBlock>
The task will only be invoked if the filter condition is true.
Required? false
Position? 4
Default value { $true }
Accept pipeline input? false
Accept wildcard characters? false
-Definition <ScriptBlock>
The task implementation.
Required? true
Position? 5
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
Indented.BuildTask
RELATED LINKS