Permalink
Browse files

Completed the psake nutget push

  • Loading branch information...
1 parent adcf83d commit b51d3f28c10b12127c0355045f9ecdf45ef3537d @lanwin committed Sep 29, 2011
View
Binary file not shown.

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -0,0 +1,5 @@
+$config.framework = "4.0";
+$config.taskNameFormat="[{0}]";
+$config.exitCode="1";
+#$config.verboseError=$true;
+$config.coloredOutput = $true;
@@ -0,0 +1,7 @@
+# Helper script to return help text.
+
+remove-module psake -ea 'SilentlyContinue'
+$scriptPath = Split-Path -parent $MyInvocation.MyCommand.path
+import-module (join-path $scriptPath psake.psm1)
+Get-Help Invoke-psake -full
+exit $lastexitcode
View
@@ -0,0 +1,15 @@
+@echo off
+
+SET DIR=%~dp0%
+
+if '%1'=='/?' goto usage
+if '%1'=='-?' goto usage
+if '%1'=='?' goto usage
+if '%1'=='/help' goto usage
+if '%1'=='help' goto usage
+
+powershell -NoProfile -ExecutionPolicy unrestricted -Command "& '%DIR%psake.ps1' %*"
+
+goto :eof
+:usage
+powershell -NoProfile -ExecutionPolicy unrestricted -Command "& '%DIR%psake-help.ps1'"
View
@@ -0,0 +1,37 @@
+# Helper script for those who want to run psake without importing the module.
+# Example:
+# .\psake.ps1 "default.ps1" "BuildHelloWord" "4.0"
+
+# Must match parameter definitions for psake.psm1/invoke-psake
+# otherwise named parameter binding fails
+param(
+ [Parameter(Position=0,Mandatory=0)]
+ [string]$buildFile = 'default.ps1',
+ [Parameter(Position=1,Mandatory=0)]
+ [string[]]$taskList = @(),
+ [Parameter(Position=2,Mandatory=0)]
+ [string]$framework,
+ [Parameter(Position=3,Mandatory=0)]
+ [switch]$docs = $false,
+ [Parameter(Position=4,Mandatory=0)]
+ [System.Collections.Hashtable]$parameters = @{},
+ [Parameter(Position=5, Mandatory=0)]
+ [System.Collections.Hashtable]$properties = @{},
+ [Parameter(Position=6, Mandatory=0)]
+ [string]$scriptPath = $(Split-Path -parent $MyInvocation.MyCommand.path),
+ [Parameter(Position=7, Mandatory=0)]
+ [switch]$nologo = $false
+)
+
+remove-module psake -ea 'SilentlyContinue'
+import-module (join-path $scriptPath psake.psm1)
+if (-not(test-path $buildFile))
+{
+ $absoluteBuildFile = (join-path $scriptPath $buildFile)
+ if (test-path $absoluteBuildFile)
+ {
+ $buildFile = $absoluteBuildFile
+ }
+}
+invoke-psake $buildFile $taskList $framework $docs $parameters $properties $nologo
+exit $lastexitcode
Oops, something went wrong.

0 comments on commit b51d3f2

Please sign in to comment.