Ability to Run psake from inner folder similar to git #377
Replies: 5 comments
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
|
Kinda late, but.. gci $psake.build_script_dir -Filter psakefile.ps1 -Recurse -File | % {
Write-Verbose "including $($_.FullName)"
Include -fileNamePathToInclude $_.FullName
}copy this in before any task definition |
|
@WithHolm that's actually a great comment. You're right that this could be dynamically included. Do you think we should call this out in the docs? We have this but it's slightly different. https://psake.dev/docs/tutorial-basics/nested-build |
|
Thank you very much! Yes if it would help others then you should add it, probably under the page that talks about the include command rather than nested build? |
|
I turned this into a discussion because folks may want to look this up. There isn't a hard set rule on this, so this is more just guidance. |
Uh oh!
There was an error while loading. Please reload this page.
expected behavior
Running psake from inner Project folder behaves as running from Project Root which contains the psakefile.ps1 File.
Current Behavior
Psake does Not find psakefile in inner folders
Possible Solution
All reactions