Using Octopus Deploy 2.6 and encountered a problem when trying to include a PreDeploy.ps1 with a windows service deployment.
File settings are as per documentation for windows service:
Build Action is set to "None"
Copy to Output Directory is set to “Copy if newer”
I still get:
“The script file “bin\PreDeploy.ps1” contained within the package will not be executed because it is contained within a child folder. As of Octopus Deploy 2.4, scripts in sub folders will not be executed.”