A build automation tool written in PowerShell that leverages your existing command-line knowledge.
psake is a build automation tool written in PowerShell. It avoids the angle-bracket tax associated with executable XML by leveraging the PowerShell syntax in your build scripts. psake has a syntax inspired by rake (aka make in Ruby) and bake (aka make in Boo), but is easier to script because it leverages your existing command-line knowledge.
Note: psake is pronounced "sake" – as in Japanese rice wine. It does NOT rhyme with make, bake, or rake.
psake can be installed in several ways:
Option 1: PowerShell Gallery (Recommended)Install-Module -Name psake -Scope CurrentUserOption 3: Manual Installation
Download and extract the project from the releases page
Unblock the zip file before extracting (right-click → Properties → Unblock)
Import the module:
Import-Module .\psake.psm1
PowerShell 5.1 or later
Execution policy set to allow script execution:
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
We highly recommend reading the psake docs for a more thorough walk through.
Create a build script file (e.g., psakefile.ps1
):
Task Default -Depends Test, Package Task Test { Write-Host "Running tests..." } Task Package { Write-Host "Creating package..." }
Run the build:
Navigate to the examples directory and try out the sample build scripts:
cd .\examples Invoke-psake # Runs the default task Invoke-psake .\psakefile.ps1 Clean # Runs the Clean task
Get detailed help and examples:
Get-Help Invoke-psake -FullVisual Studio Integration
For Visual Studio 2017 and later, psake can automatically locate MSBuild. If you encounter issues, you may need to install the VSSetup PowerShell module:
Install-Module -Name VSSetup -Scope CurrentUser
You can find information about each release of psake in the releases section and the Changelog.
We welcome contributions! Here's how you can get involved:
psake is released under the MIT license.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4