Skip to main content

Invoke-Task

This page was generated

Contributions are welcome in Psake-repo.

SYNOPSIS​

Executes another task in the current build script.

SYNTAX​

__AllParameterSets​

Invoke-Task [-TaskName] <string> [<CommonParameters>]

DESCRIPTION​

Use this inside a task's Action when you need to sequence tasks programmatically rather than declaring them with -Depends.

EXAMPLES​

EXAMPLE 1​

Invoke-Task "Compile"

This example calls the "Compile" task.

PARAMETERS​

-TaskName​

The name of the task to execute.

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 0
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

CommonParameters​

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS​

OUTPUTS​

NOTES​

VERSION​

This page was generated using comment-based help in Psake 5.0.4.