Skip to content

Instantly share code, notes, and snippets.

View nvnivs's full-sized avatar

Nuno Pereira nvnivs

View GitHub Profile
@nvnivs
nvnivs / Psake-Build.ps1
Last active May 10, 2023 15:44
Generic Psake build script
Properties {
$baseDir = Resolve-Path .
$project = Split-Path $baseDir -Leaf
$artifactDir = "$baseDir\Build\Packages"
$version = "1.0.1"
}
Task Default -Depends Build
Task Clean {
if (Test-Path "$baseDir\build") {
@nvnivs
nvnivs / build.bat
Last active August 29, 2015 13:57
Batch to invoke a Psake build
powershell -NonInteractive -Command "& { Import-Module .\psake.psm1; Invoke-Psake .\psake-build.ps1 %*; exit !($psake.build_success); }"