Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Try load psake-config.ps1 from module directory

when there if no psake-config.ps1 in configdir. If you want to put your
default modules next to your psake distribution, you need a way to
change the default configuration from you psake folder instead from the
folder where the build script is.
  • Loading branch information...
commit b703f3b78e1e78b47b2181ba8627db321888c5fd 1 parent fcd09c6
@lanwin authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 psake.psm1
6 psake.psm1
@@ -464,6 +464,12 @@ function LoadConfiguration {
$psakeConfigFilePath = (join-path $configdir "psake-config.ps1")
+ # if there is no config file found in configdir, try load default
+ # one next to the psake module.
+ if (-not (test-path $psakeConfigFilePath -pathType Leaf)) {
+ $psakeConfigFilePath = (join-path $PSScriptRoot "psake-config.ps1")
+ }
if (test-path $psakeConfigFilePath -pathType Leaf) {
try {
$config = GetCurrentConfigurationOrDefault
Please sign in to comment.
Something went wrong with that request. Please try again.