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.
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.