You need to specify the copy root if you want to copy files only without folder structure. Since the project.exe is in a different path with script.ps1 file, you need to copy them in different copy task.
Following the steps below:
- Add a “Copy Files” step to copy “project.exe”. Settings like following:
- Add a “Copy Files” step to copy “SomeScripts” folder. Settings like following:
- Add a “Copy and Publish Build Artifacts” step to copy these files to “drop”. Settings like following:
Now you should get the things like following in drop folder:
Project.exe
SomeScripts
script.ps1