< Back

Invoke-Task

Sun Jan 19, 2020 5:58 pm

NAME Invoke-Task



SYNOPSIS

Executes another task in the current build script.





SYNTAX

Invoke-Task [-taskName] <String> [<CommonParameters>]





DESCRIPTION

This is a function that will allow you to invoke a Task from within another Task in the current build script.





PARAMETERS

-taskName <String>

The name of the task to execute.



Required? true

Position? 1

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



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Invoke-Task "Compile"



This example calls the "Compile" task.











RELATED LINKS

Assert

Exec

FormatTaskName

Framework

Get-PSakeScriptTasks

Include

Invoke-psake

Properties

Task

TaskSetup

TaskTearDown