- Open-source build automation tool
- Powershell-based
- Leverages existing command line knowledge
- Replaces msbuild for most tasks
With an empty solution in Visual studio (2015):
A. Clone from source (https://github.com/psake/psake) B. NuGet package
We're going to use it as a NuGet package:
- Create a new "ClassLibrary" project in the solution (you could call it "Build" if you like)
- Install psake
Install-Package psake
- Create a new Powershell script with psake tasks
task default -depends Test
task Clean {
Write-Host 'Executed Clean!'
}
task Compile -depends Clean {
Write-Host 'Executed Compile!'
}
task Test -depends Compile, Clean {
Write-Host 'Executed Test!'
}
- Run a psake task
Import-Module ..\packages\psake.4.6.0\tools\psake.psm1
Invoke-psake