SharpeRAD / Cake.Powershell

Powershell addin for Cake
http://cakebuild.net
MIT License
83 stars 36 forks source link

Changes to allow scripts to be executed with dot sourcing #45

Closed mlintell closed 6 years ago

mlintell commented 6 years ago

I am working on a ServiceFabric project and wanted to deploy my micro services using the Deploy-FabricApplication.ps1 powershell script. However this script only works correctly if it is run using dot sourcing (. ./Deploy-FabricApplication.ps1). So I have made changes to allow Cake.Powershell to run scripts using dot sourcing. It appears to work as intended and I am now building and deploying my services using a cake script which references a custom build of the Cake.Powershell.dll.

I am submitting the changes back to you in case they are useful enough to be included in the main project.

SharpeRAD commented 6 years ago

Looks good, thank for contributing 👍