Setting up PSake
Asked Answered
G

1

11

Does anybody know or have a link to how I set up psake to run through powershell?

I have absolutely no idea and I can find nothing to tell me.

Grammatical answered 24/10, 2009 at 19:56 Comment(0)
I
10

Download it from here. Here are some examples of its use:

http://ayende.com/Blog/archive/2009/08/30/on-psake.aspx http://www.jameskovacs.com/blog/IntroducingPsake.aspx

The 2.0 version of PSake is a PowerShell module which requires PowerShell 2.0. Extract the contents of the PSake ZIP into $env:Home\Documents\WindowsPowerShell\Modules\PSake. Then you import it like so:

Import-Module PSake

Define a "properties" hashtable and then start using its exported commands like Task in your build scripts.

Impacted answered 24/10, 2009 at 20:15 Comment(1)
Import-Module is one way. jameskovacs.com/blog/CategoryView.aspx?category=PowerShell describes this way: you can copy the psake.psm1 into a folder called psake into the "Modules" folder in your profile directory (you may have to create it if it's not there) or your machine-wide "Modules" directory: i.e. Profile Directory: C:\Users\Jorge\Documents\WindowsPowerShell\Modules\psake i.e. Machine-wide Modules folder: C:\Windows\System32\WindowsPowerShell\v1.0\Modules\psakeGrammatical

© 2022 - 2024 — McMap. All rights reserved.