Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A build automation tool written in PowerShell

License

NotificationsYou must be signed in to change notification settings

psake/psake

Repository files navigation

psake icon

A build automation tool written in PowerShell that leverages your existingcommand-line knowledge.

GitHub Actions StatusPowerShell GalleryChocolateyNuget downloadsOpen Collective backers and sponsors

What is psake?

psake is a build automation tool written in PowerShell. It avoids theangle-bracket tax associated with executable XML by leveraging the PowerShellsyntax in your build scripts. psake has a syntax inspired by rake (aka makein Ruby) and bake (aka make in Boo), but is easier to script because itleverages your existing command-line knowledge.

Note: psake is pronounced "sake" – as in Japanese rice wine. It doesNOT rhyme with make, bake, or rake.

Installation

psake can be installed in several ways:

Option 1: PowerShell Gallery (Recommended)

Install-Module-Name psake-Scope CurrentUser

Option 2: Chocolatey

choco install psake

Option 3: Manual Installation

  1. Download and extract the project from thereleases page

  2. Unblock the zip file before extracting (right-click → Properties → Unblock)

  3. Import the module:

    Import-Module .\psake.psm1

Quick Start

Prerequisites

  • PowerShell 5.1 or later

  • Execution policy set to allow script execution:

    Set-ExecutionPolicy RemoteSigned-Scope CurrentUser

Your First Build Script

We highly recommend reading thepsake docs for amore thorough walk through.

  1. Create a build script file (e.g.,psakefile.ps1):

    TaskDefault-Depends Test, PackageTask Test {Write-Host"Running tests..."}Task Package {Write-Host"Creating package..."}
  2. Run the build:

    Invoke-psake

Running Examples

Navigate to the examples directory and try out the sample build scripts:

cd .\examplesInvoke-psake# Runs the default taskInvoke-psake .\psakefile.ps1Clean# Runs the Clean task

Getting Help

Get detailed help and examples:

Get-HelpInvoke-psake-Full

Visual Studio Integration

For Visual Studio 2017 and later, psake can automatically locate MSBuild.If you encounter issues, you may need to install theVSSetup PowerShell module:

Install-Module-Name VSSetup-Scope CurrentUser

Release Notes

You can find information about each release of psake in thereleases section and theChangelog.

Contributing

We welcome contributions! Here's how you can get involved:

Community

Development

License

psake is released under theMIT license.


[8]ページ先頭

©2009-2025 Movatter.jp